propagating unreachable for functions returning never type
Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
parent
14cf5efaa5
commit
d3f3fe98e3
|
@ -2660,6 +2660,10 @@ impl<'a> Codegen<'a> {
|
|||
|
||||
self.add_clobber_stores(clobbered_aliases);
|
||||
|
||||
if sig.ret == ty::Id::NEVER {
|
||||
return None;
|
||||
}
|
||||
|
||||
alt_value.or(Some(Value::new(self.ci.ctrl.get()).ty(sig.ret)))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue