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