forked from OSchip/llvm-project
Fix linkage type for tentative definition of ivar offset variables (GNUstep runtime)
llvm-svn: 136628
This commit is contained in:
parent
89f138ae63
commit
28dc7f94f8
|
@ -2453,8 +2453,8 @@ llvm::Value *CGObjCGNU::EmitIvarOffset(CodeGenFunction &CGF,
|
|||
llvm::Value *Offset = TheModule.getGlobalVariable(name);
|
||||
if (!Offset)
|
||||
Offset = new llvm::GlobalVariable(TheModule, IntTy,
|
||||
false, llvm::GlobalValue::CommonLinkage,
|
||||
0, name);
|
||||
false, llvm::GlobalValue::LinkOnceAnyLinkage,
|
||||
llvm::Constant::getNullValue(IntTy), name);
|
||||
return CGF.Builder.CreateLoad(Offset);
|
||||
}
|
||||
uint64_t Offset = ComputeIvarBaseOffset(CGF.CGM, Interface, Ivar);
|
||||
|
|
Loading…
Reference in New Issue