Include ISA-specific information in verifier errors.
When the test driver reports a verifier error, make sure to include the TargetIsa when printing the failing function.
This commit is contained in:
@@ -43,7 +43,7 @@ impl SubTest for TestLegalizer {
|
||||
comp_ctx.flowgraph();
|
||||
comp_ctx
|
||||
.legalize(isa)
|
||||
.map_err(|e| pretty_error(&comp_ctx.func, e))?;
|
||||
.map_err(|e| pretty_error(&comp_ctx.func, context.isa, e))?;
|
||||
|
||||
let mut text = String::new();
|
||||
write!(&mut text, "{}", &comp_ctx.func.display(Some(isa)))
|
||||
|
||||
Reference in New Issue
Block a user