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 | c9c88b4159791c48e486ca94e3743b5979e2b7a6 (patch) | |
tree | 4d85d56ca6aee06dbf8d7e691a73daa53f07e571 /lib/CodeGen/CGBlocks.cpp | |
parent | 8c4dc1ffd20a8fe90a90c7f471cd9842b981078e (diff) |
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77722 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 87b140f733..cf49583db1 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] = 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; |