From: Nick Lewycky Date: Mon, 3 May 2010 21:36:51 +0000 (+0000) Subject: Fix function prototype mismatch in LLVMUnionType(). Fixes PR7019. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=a75586f37e2409aebce8e330832eec05487aa783 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 --- diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 8c88f5dae24..bbf1375ab0c 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); }