[cfe-commits] r65807 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Daniel Dunbar daniel at zuster.org
Sun Mar 1 21:18:14 PST 2009


Author: ddunbar
Date: Sun Mar  1 23:18:14 2009
New Revision: 65807

URL: http://llvm.org/viewvc/llvm-project?rev=65807&view=rev
Log:
Fix completely broken thinko in GetClassGlobal.

Modified:
    cfe/trunk/lib/CodeGen/CGObjCMac.cpp

Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=65807&r1=65806&r2=65807&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Sun Mar  1 23:18:14 2009
@@ -4515,7 +4515,7 @@
 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());





More information about the cfe-commits mailing list