From 4ded337b62096583e5a3819ca509f4e74132948d Mon Sep 17 00:00:00 2001 From: Bernhard Urban-Forster Date: Fri, 8 Apr 2022 09:36:13 +0200 Subject: [PATCH] simplify FunctionType.toString() --- .../src/com/oracle/truffle/llvm/runtime/types/FunctionType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/types/FunctionType.java b/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/types/FunctionType.java index a07e932415a3..381f23cf3ec4 100644 --- a/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/types/FunctionType.java +++ b/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/types/FunctionType.java @@ -153,7 +153,7 @@ public String toString() { sb.append(argumentTypes[i]); } - if ((fixedArgs == 0 && argumentTypes.length == 0) || fixedArgs == argumentTypes.length) { + if (fixedArgs == argumentTypes.length) { sb.append("..."); } sb.append(")");