Update for LLVM API change.
authorOwen Anderson <resistor@mac.com>
Tue, 21 Jul 2009 02:57:15 +0000 (02:57 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 21 Jul 2009 02:57:15 +0000 (02:57 +0000)
llvm-svn: 76534

clang/lib/CodeGen/CGCXXTemp.cpp

index a6e6d11..f47af23 100644 (file)
@@ -29,12 +29,12 @@ void CodeGenFunction::PushCXXTemporary(const CXXTemporary *Temporary,
     // Initialize it to false. This initialization takes place right after
     // the alloca insert point.
     llvm::StoreInst *SI = 
-      new llvm::StoreInst(llvm::ConstantInt::getFalse(), CondPtr);
+      new llvm::StoreInst(VMContext.getConstantIntFalse(), CondPtr);
     llvm::BasicBlock *Block = AllocaInsertPt->getParent();
     Block->getInstList().insertAfter((llvm::Instruction *)AllocaInsertPt, SI);
 
     // Now set it to true.
-    Builder.CreateStore(llvm::ConstantInt::getTrue(), CondPtr);
+    Builder.CreateStore(VMContext.getConstantIntTrue(), CondPtr);
   }
   
   LiveTemporaries.push_back(CXXLiveTemporaryInfo(Temporary, Ptr, DtorBlock, 
@@ -74,7 +74,7 @@ void CodeGenFunction::PopCXXTemporary() {
 
   if (CondEnd) {
     // Reset the condition. to false.
-    Builder.CreateStore(llvm::ConstantInt::getFalse(), Info.CondPtr);
+    Builder.CreateStore(VMContext.getConstantIntFalse(), Info.CondPtr);
     EmitBlock(CondEnd);
   }