update for api change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133365 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp
index 8ad82a6..8fb6e3e 100644
--- a/lib/CodeGen/CGBlocks.cpp
+++ b/lib/CodeGen/CGBlocks.cpp
@@ -677,10 +677,8 @@
// const char *signature; // the block signature
// const char *layout; // reserved
// };
- BlockDescriptorType = llvm::StructType::get(UnsignedLongTy->getContext(),
- UnsignedLongTy,
- UnsignedLongTy,
- NULL);
+ BlockDescriptorType =
+ llvm::StructType::get(UnsignedLongTy, UnsignedLongTy, NULL);
getModule().addTypeName("struct.__block_descriptor",
BlockDescriptorType);
@@ -703,8 +701,7 @@
// void (*__invoke)(void *);
// struct __block_descriptor *__descriptor;
// };
- GenericBlockLiteralType = llvm::StructType::get(getLLVMContext(),
- VoidPtrTy,
+ GenericBlockLiteralType = llvm::StructType::get(VoidPtrTy,
IntTy,
IntTy,
VoidPtrTy,