]> granicus.if.org Git - clang/commitdiff
ItaniumCXXABI.cpp: Don't use nullptr. Clang source tree should be pre-c++11-compatible.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 30 Mar 2012 05:43:21 +0000 (05:43 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 30 Mar 2012 05:43:21 +0000 (05:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153728 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ItaniumCXXABI.cpp

index 8cce8c90a07186745cf203e9c76e24c18fa31dcb..738a1832cc4546be5e2c04d4fa6446c0ec3be0e7 100644 (file)
@@ -1096,7 +1096,7 @@ void ItaniumCXXABI::EmitGuardedInit(CodeGenFunction &CGF,
 
   // There are strange possibilities here involving the
   // double-emission of constructors and destructors.
-  llvm::GlobalVariable *guard = nullptr;
+  llvm::GlobalVariable *guard = 0;
   if (llvm::GlobalValue *existingGuard 
         = CGM.getModule().getNamedValue(guardName.str())) {
     if (isa<llvm::GlobalVariable>(existingGuard) &&