This commit is contained in:
hyd-dev 2021-05-23 22:19:12 +08:00
parent 8ef3974007
commit ac39f36526
No known key found for this signature in database
GPG Key ID: 74FA7FD5B8DA14B8

View File

@ -316,7 +316,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
}
if !matches!(unwind, StackPopUnwind::NotAllowed)
&& self
&& !self
.fn_can_unwind(self.tcx.codegen_fn_attrs(callee_def_id).flags, callee_abi)
{
unwind = StackPopUnwind::NotAllowed;