Skip to content

Commit e0d6292

Browse files
committed
Split critical call edges in coroutine drop shim
1 parent cef892e commit e0d6292

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_mir_transform/src/coroutine.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
//! Otherwise it drops all the values in scope at the last suspension point.
5252
5353
use crate::abort_unwinding_calls;
54+
use crate::add_call_guards;
5455
use crate::deref_separator::deref_finder;
5556
use crate::errors;
5657
use crate::pass_manager as pm;
@@ -1162,7 +1163,7 @@ fn create_coroutine_drop_shim<'tcx>(
11621163
pm::run_passes_no_validate(
11631164
tcx,
11641165
&mut body,
1165-
&[&abort_unwinding_calls::AbortUnwindingCalls],
1166+
&[&abort_unwinding_calls::AbortUnwindingCalls, &add_call_guards::CriticalCallEdges],
11661167
None,
11671168
);
11681169

0 commit comments

Comments
 (0)