Fixing error message for parameter number mismatch in function call.

This commit is contained in:
Stefano Sanfilippo 2015-03-09 13:43:22 +01:00
parent 12ea83a4af
commit e46ddfcd80

View File

@ -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())
});
}