Enhance Verifier error reporting;

This commit is contained in:
Benjamin Bouvier
2018-07-27 17:55:26 +02:00
committed by Dan Gohman
parent 1b42105faa
commit 3a550d185f
4 changed files with 34 additions and 27 deletions

View File

@@ -820,7 +820,8 @@ impl<'a> Verifier<'a> {
if i != variable_args.len() {
return err!(
inst,
"mismatched argument count, got {}, expected {}",
"mismatched argument count for `{}`: got {}, expected {}",
self.func.dfg.display_inst(inst, None),
variable_args.len(),
i
);