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({
|
return reportError({
|
||||||
"Argument number mismatch in call of",
|
"Argument number mismatch in call of",
|
||||||
node.getName().getValue() + "()",
|
node.getName().getValue() + "()",
|
||||||
"expected",
|
"expected", std::to_string(callee->arg_size()),
|
||||||
std::to_string(callee->arg_size()), "required",
|
"given", std::to_string(node.getArgs().size())
|
||||||
std::to_string(node.getArgs().size()), "given"
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user