about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhyd-dev <yd-huang@outlook.com>2021-05-23 22:19:12 +0800
committerhyd-dev <yd-huang@outlook.com>2021-05-23 22:19:12 +0800
commitac39f365266fcbfaf8d1fb31ac59feba60950e92 (patch)
tree5eadf222387247214f93e7f730dd151713fe6981
parent8ef397400707e3c11424c8a1aa6bc9302617a138 (diff)
downloadrust-ac39f365266fcbfaf8d1fb31ac59feba60950e92.tar.gz
rust-ac39f365266fcbfaf8d1fb31ac59feba60950e92.zip
:facepalm:
-rw-r--r--compiler/rustc_mir/src/interpret/terminator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/interpret/terminator.rs b/compiler/rustc_mir/src/interpret/terminator.rs
index cefd47d718f..9cbf94dbadf 100644
--- a/compiler/rustc_mir/src/interpret/terminator.rs
+++ b/compiler/rustc_mir/src/interpret/terminator.rs
@@ -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;