diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-13 04:10:07 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-13 04:10:07 +0000 |
commit | ae86c19e68d67d50d2c9cbef51e1129545634ece (patch) | |
tree | 3b56c41bb8c677e44ba6cf2ec2a2ce27e4a01220 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 53a52215b5480bd52f1aee5189c7b08a7098fc51 (diff) | |
download | bcm5719-llvm-ae86c19e68d67d50d2c9cbef51e1129545634ece.tar.gz bcm5719-llvm-ae86c19e68d67d50d2c9cbef51e1129545634ece.zip |
Update for LLVM API change.
llvm-svn: 75446
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 7b08216bab0..4f85e8dc5ae 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -414,7 +414,7 @@ void CodeGenFunction::EmitMemSetToZero(llvm::Value *DestPtr, QualType Ty) { const llvm::Type *IntPtr = llvm::IntegerType::get(LLVMPointerWidth); Builder.CreateCall4(CGM.getMemSetFn(), DestPtr, - llvm::ConstantInt::getNullValue(llvm::Type::Int8Ty), + getLLVMContext().getNullValue(llvm::Type::Int8Ty), // TypeInfo.first describes size in bits. llvm::ConstantInt::get(IntPtr, TypeInfo.first/8), llvm::ConstantInt::get(llvm::Type::Int32Ty, @@ -579,7 +579,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(llvm::Constant::getNullValue(llvm::Type::Int32Ty), + Builder.CreateStore(getLLVMContext().getNullValue(llvm::Type::Int32Ty), DestCodePtr); } else Builder.ClearInsertionPoint(); |