aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Type.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 9d09e29507..8b3184e7c8 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