From: Owen Anderson Date: Tue, 21 Jul 2009 02:57:15 +0000 (+0000) Subject: Update for LLVM API change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f48880ad8944eaa8e154ec4e93241164501fc366;p=clang Update for LLVM API change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76534 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGCXXTemp.cpp b/lib/CodeGen/CGCXXTemp.cpp index a6e6d11505..f47af23f04 100644 --- a/lib/CodeGen/CGCXXTemp.cpp +++ b/lib/CodeGen/CGCXXTemp.cpp @@ -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); }