summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SjLjEHPrepare.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-06-18 22:48:56 +0000
committerChris Lattner <sabre@nondot.org>2011-06-18 22:48:56 +0000
commitb2318662b6d2e6d9ea9917fd280dde0ba9a938ad (patch)
tree68fa7b164e186267795a98ba805b9ee2c7adcf40 /lib/CodeGen/SjLjEHPrepare.cpp
parentea049181a020b233cfd8a33583e2784d590e1dcb (diff)
downloadllvm-b2318662b6d2e6d9ea9917fd280dde0ba9a938ad.tar.gz
llvm-b2318662b6d2e6d9ea9917fd280dde0ba9a938ad.tar.bz2
llvm-b2318662b6d2e6d9ea9917fd280dde0ba9a938ad.tar.xz
fix the varargs version of StructType::get to not require an LLVMContext, making usage
much cleaner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SjLjEHPrepare.cpp')
-rw-r--r--lib/CodeGen/SjLjEHPrepare.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SjLjEHPrepare.cpp b/lib/CodeGen/SjLjEHPrepare.cpp
index 92970e496c..c2565afe01 100644
--- a/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/lib/CodeGen/SjLjEHPrepare.cpp
@@ -91,8 +91,7 @@ bool SjLjEHPass::doInitialization(Module &M) {
Type::getInt8PtrTy(M.getContext());
const Type *Int32Ty = Type::getInt32Ty(M.getContext());
FunctionContextTy =
- StructType::get(M.getContext(),
- VoidPtrTy, // __prev
+ StructType::get(VoidPtrTy, // __prev
Int32Ty, // call_site
ArrayType::get(Int32Ty, 4), // __data
VoidPtrTy, // __personality