Fixing error message for parameter number mismatch in function call.
This commit is contained in:
parent
12ea83a4af
commit
e46ddfcd80
|
@ -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())
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue
Block a user