Update for LLVM API change.

llvm-svn: 76534
This commit is contained in:
Owen Anderson 2009-07-21 02:57:15 +00:00
parent 2ad52176f9
commit f319a7d6e7
1 changed files with 3 additions and 3 deletions

View 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);
}