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 | 69243825cb5c91ec7207256aa57ae327cfaf8cb2 (patch) | |
tree | 320811e1011cf872fe0196533f1e3cdbf125b8a3 /lib/CodeGen/CGBlocks.cpp | |
parent | ce7b38c4f1ea9c51e2f46a82e3f57456b74269d5 (diff) |
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 42b55f79bf..efc58f823f 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/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; |