Error checking: properly signal a crit-edge requirement failure (used for regalloc.rs fuzzer)

This commit is contained in:
Chris Fallin
2021-05-08 21:48:58 -07:00
parent f1fc9a8f7e
commit b9e89885c4
3 changed files with 11 additions and 13 deletions

View File

@@ -4445,7 +4445,7 @@ impl<'a, F: Function> Env<'a, F> {
}
pub fn run<F: Function>(func: &F, mach_env: &MachineEnv) -> Result<Output, RegAllocError> {
let cfginfo = CFGInfo::new(func);
let cfginfo = CFGInfo::new(func)?;
let mut env = Env::new(func, mach_env, cfginfo);
env.init()?;