Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75446 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp
index 42b55f7..efc58f8 100644
--- a/lib/CodeGen/CGBlocks.cpp
+++ b/lib/CodeGen/CGBlocks.cpp
@@ -501,7 +501,7 @@
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 @@
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;