mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
give a bit more debug info when a function fails to codegen
This commit is contained in:
parent
99a95b7200
commit
5e29ee1576
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ pub fn gen_from_mono_module(
|
||||||
// env.module.print_to_stderr();
|
// env.module.print_to_stderr();
|
||||||
// NOTE: If this fails, uncomment the above println to debug.
|
// NOTE: If this fails, uncomment the above println to debug.
|
||||||
panic!(
|
panic!(
|
||||||
"Non-main function failed LLVM verification. Uncomment the above println to debug!"
|
r"Non-main function {:?} failed LLVM verification. Uncomment the above println to debug!",
|
||||||
|
fn_val.get_name(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue