stage2: LLVM backend: add a missing setUnnamedAddr

for anonymous constants
This commit is contained in:
Andrew Kelley 2021-10-21 23:22:31 -07:00
parent 895aea0b63
commit 6cd14f051d

View File

@ -1648,6 +1648,7 @@ pub const FuncGen = struct {
global.setInitializer(llvm_val);
global.setLinkage(.Private);
global.setGlobalConstant(.True);
global.setUnnamedAddr(.True);
global.setAlignment(ty.abiAlignment(target));
gop.value_ptr.* = global;
return global;