Fix error reporting in FunctionPrototype bitcode emitter.

This commit is contained in:
Stefano Sanfilippo 2015-03-09 13:58:43 +01:00
parent ea94de076d
commit 1f4fec77b3

View File

@ -512,7 +512,7 @@ bool BitcodeEmitter::emit(FunctionPrototype const& node) {
if (argsSet.find(name) != argsSet.end()) {
return reportError({
"Two arguments with same name to function",
node.getName().getValue() + "()", ":", name
node.getName().getValue() + "():", name
});
}
argsSet.insert(name);