forked from OSchip/llvm-project
Fix completely broken thinko in GetClassGlobal.
llvm-svn: 65807
This commit is contained in:
parent
0f3403cb5a
commit
a646834214
|
@ -4515,7 +4515,7 @@ llvm::GlobalVariable *
|
|||
CGObjCNonFragileABIMac::GetClassGlobal(const std::string &Name) {
|
||||
llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name);
|
||||
|
||||
if (GV) {
|
||||
if (!GV) {
|
||||
GV = new llvm::GlobalVariable(ObjCTypes.ClassnfABITy, false,
|
||||
llvm::GlobalValue::ExternalLinkage,
|
||||
0, Name, &CGM.getModule());
|
||||
|
|
Loading…
Reference in New Issue