Fix error reporting in FunctionPrototype bitcode emitter.
This commit is contained in:
parent
ea94de076d
commit
1f4fec77b3
|
@ -512,7 +512,7 @@ bool BitcodeEmitter::emit(FunctionPrototype const& node) {
|
||||||
if (argsSet.find(name) != argsSet.end()) {
|
if (argsSet.find(name) != argsSet.end()) {
|
||||||
return reportError({
|
return reportError({
|
||||||
"Two arguments with same name to function",
|
"Two arguments with same name to function",
|
||||||
node.getName().getValue() + "()", ":", name
|
node.getName().getValue() + "():", name
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
argsSet.insert(name);
|
argsSet.insert(name);
|
||||||
|
|
Reference in New Issue
Block a user