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/CGBlocks.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/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 42b55f79bff..efc58f823f2 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -501,7 +501,7 @@ BlockModule::GetAddrOfGlobalBlock(const BlockExpr *BE, const char * n) { llvm::Constant *DescriptorFields[2]; // Reserved - DescriptorFields[0] = llvm::Constant::getNullValue(UnsignedLongTy); + DescriptorFields[0] = getModule().getContext().getNullValue(UnsignedLongTy); // Block literal size. For global blocks we just use the size of the generic // block literal struct. @@ -542,7 +542,7 @@ BlockModule::GetAddrOfGlobalBlock(const BlockExpr *BE, const char * n) { llvm::ConstantInt::get(IntTy, BLOCK_IS_GLOBAL | BLOCK_HAS_DESCRIPTOR); // Reserved - LiteralFields[2] = llvm::Constant::getNullValue(IntTy); + LiteralFields[2] = getModule().getContext().getNullValue(IntTy); // Function LiteralFields[3] = Fn; |