diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-21 02:57:15 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-21 02:57:15 +0000 |
| commit | f319a7d6e781be2f576533d5007da123a1b697eb (patch) | |
| tree | 024be55239edd0d4bb826b894d94153974718bb7 | |
| parent | 2ad52176f9ea4274061435045ae45473b57d5d07 (diff) | |
| download | bcm5719-llvm-f319a7d6e781be2f576533d5007da123a1b697eb.tar.gz bcm5719-llvm-f319a7d6e781be2f576533d5007da123a1b697eb.zip | |
Update for LLVM API change.
llvm-svn: 76534
| -rw-r--r-- | clang/lib/CodeGen/CGCXXTemp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGCXXTemp.cpp b/clang/lib/CodeGen/CGCXXTemp.cpp index a6e6d11505b..f47af23f046 100644 --- a/clang/lib/CodeGen/CGCXXTemp.cpp +++ b/clang/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); } |

