diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-05-03 21:36:51 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-05-03 21:36:51 +0000 |
commit | a75586f37e2409aebce8e330832eec05487aa783 (patch) | |
tree | 31bada50bc5811943092f460561f85bfb0c0737f | |
parent | 9d0838fba8bb79bd4f43244e91f199dd8f4ea1b6 (diff) |
Fix function prototype mismatch in LLVMUnionType(). Fixes PR7019.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102959 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Core.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 8c88f5dae2..bbf1375ab0 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -327,8 +327,7 @@ LLVMTypeRef LLVMUnionTypeInContext(LLVMContextRef C, LLVMTypeRef *ElementTypes, return wrap(UnionType::get(&Tys[0], Tys.size())); } -LLVMTypeRef LLVMUnionType(LLVMTypeRef *ElementTypes, - unsigned ElementCount, int Packed) { +LLVMTypeRef LLVMUnionType(LLVMTypeRef *ElementTypes, unsigned ElementCount) { return LLVMUnionTypeInContext(LLVMGetGlobalContext(), ElementTypes, ElementCount); } |