From 3868521e223848244211a58e668589a3a1b93494 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 28 Jul 2001 17:52:35 +0000 Subject: [PATCH] Allow vararg method types with 0 fixed types git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Type.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 9d09e295073..8b3184e7c8c 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -213,7 +213,10 @@ const MethodType *MethodType::getMethodType(const Type *ReturnType, Name += ", "; Name += (*I)->getName(); } - if (IsVarArg) Name += ", ..."; + if (IsVarArg) { + if (Params.size() > 1) Name += ", "; + Name += "..."; + } Name += ")"; #if TEST_MERGE_TYPES