From e46ddfcd80db30b3f5dddac11838584ef3c12e02 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Mon, 9 Mar 2015 13:43:22 +0100 Subject: [PATCH] Fixing error message for parameter number mismatch in function call. --- BitcodeEmitter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BitcodeEmitter.cpp b/BitcodeEmitter.cpp index 7b0d309..173482b 100644 --- a/BitcodeEmitter.cpp +++ b/BitcodeEmitter.cpp @@ -427,9 +427,8 @@ bool BitcodeEmitter::emit(FunctionCall const& node) { return reportError({ "Argument number mismatch in call of", node.getName().getValue() + "()", - "expected", - std::to_string(callee->arg_size()), "required", - std::to_string(node.getArgs().size()), "given" + "expected", std::to_string(callee->arg_size()), + "given", std::to_string(node.getArgs().size()) }); }