diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-31 20:28:54 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-31 20:28:54 +0000 |
commit | 0b75f23b9458804a5d869ae1b8481eb6bae60338 (patch) | |
tree | a2bba1c2a831287b2cf267d23f41a8e0cd3cfb69 /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 5a1acd99126d8b867aef4a785aae635fb98b6c08 (diff) | |
download | bcm5719-llvm-0b75f23b9458804a5d869ae1b8481eb6bae60338.tar.gz bcm5719-llvm-0b75f23b9458804a5d869ae1b8481eb6bae60338.zip |
Update for LLVM API change.
llvm-svn: 77722
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 87b140f733b..cf49583db18 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] = getModule().getContext().getNullValue(UnsignedLongTy); + DescriptorFields[0] = llvm::Constant::getNullValue(UnsignedLongTy); // Block literal size. For global blocks we just use the size of the generic // block literal struct. @@ -543,7 +543,7 @@ BlockModule::GetAddrOfGlobalBlock(const BlockExpr *BE, const char * n) { llvm::ConstantInt::get(IntTy, BLOCK_IS_GLOBAL | BLOCK_HAS_DESCRIPTOR); // Reserved - LiteralFields[2] = getModule().getContext().getNullValue(IntTy); + LiteralFields[2] = llvm::Constant::getNullValue(IntTy); // Function LiteralFields[3] = Fn; |