summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-31 20:28:54 +0000
committerOwen Anderson <resistor@mac.com>2009-07-31 20:28:54 +0000
commit0b75f23b9458804a5d869ae1b8481eb6bae60338 (patch)
treea2bba1c2a831287b2cf267d23f41a8e0cd3cfb69 /clang/lib/CodeGen/CodeGenFunction.cpp
parent5a1acd99126d8b867aef4a785aae635fb98b6c08 (diff)
downloadbcm5719-llvm-0b75f23b9458804a5d869ae1b8481eb6bae60338.tar.gz
bcm5719-llvm-0b75f23b9458804a5d869ae1b8481eb6bae60338.zip
Update for LLVM API change.
llvm-svn: 77722
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 708100e2a05..22c099f8dcd 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -430,7 +430,7 @@ void CodeGenFunction::EmitMemSetToZero(llvm::Value *DestPtr, QualType Ty) {
const llvm::Type *IntPtr = llvm::IntegerType::get(LLVMPointerWidth);
Builder.CreateCall4(CGM.getMemSetFn(), DestPtr,
- getLLVMContext().getNullValue(llvm::Type::Int8Ty),
+ llvm::Constant::getNullValue(llvm::Type::Int8Ty),
// TypeInfo.first describes size in bits.
llvm::ConstantInt::get(IntPtr, TypeInfo.first/8),
llvm::ConstantInt::get(llvm::Type::Int32Ty,
@@ -595,7 +595,7 @@ CodeGenFunction::CleanupBlockInfo CodeGenFunction::PopCleanupBlock()
// If we had a current basic block, we also need to emit an instruction
// to initialize the cleanup destination.
- Builder.CreateStore(getLLVMContext().getNullValue(llvm::Type::Int32Ty),
+ Builder.CreateStore(llvm::Constant::getNullValue(llvm::Type::Int32Ty),
DestCodePtr);
} else
Builder.ClearInsertionPoint();
OpenPOWER on IntegriCloud