From a75586f37e2409aebce8e330832eec05487aa783 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 3 May 2010 21:36:51 +0000 Subject: [PATCH] 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 --- lib/VMCore/Core.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.34.1