[cfe-commits] r76534 - /cfe/trunk/lib/CodeGen/CGCXXTemp.cpp
Owen Anderson
resistor at mac.com
Mon Jul 20 19:57:16 PDT 2009
Author: resistor
Date: Mon Jul 20 21:57:15 2009
New Revision: 76534
URL: http://llvm.org/viewvc/llvm-project?rev=76534&view=rev
Log:
Update for LLVM API change.
Modified:
cfe/trunk/lib/CodeGen/CGCXXTemp.cpp
Modified: cfe/trunk/lib/CodeGen/CGCXXTemp.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXXTemp.cpp?rev=76534&r1=76533&r2=76534&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXXTemp.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXXTemp.cpp Mon Jul 20 21:57:15 2009
@@ -29,12 +29,12 @@
// 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 @@
if (CondEnd) {
// Reset the condition. to false.
- Builder.CreateStore(llvm::ConstantInt::getFalse(), Info.CondPtr);
+ Builder.CreateStore(VMContext.getConstantIntFalse(), Info.CondPtr);
EmitBlock(CondEnd);
}
More information about the cfe-commits
mailing list