diff options
| author | Paul Daniel Faria <Nashenas88@users.noreply.github.com> | 2019-10-04 00:55:28 -0400 |
|---|---|---|
| committer | Paul Daniel Faria <Nashenas88@users.noreply.github.com> | 2019-12-02 08:30:30 -0500 |
| commit | ad734680af76d92f8e490141d72bf2a629e2d5f8 (patch) | |
| tree | bb191576da0a3f87defdcbf9c0754bcd6cb4ac31 /src/librustc_codegen_ssa/mir | |
| parent | 8e8c97e5fde0321da6e706d2f193cb3f395de1b6 (diff) | |
| download | rust-ad734680af76d92f8e490141d72bf2a629e2d5f8.tar.gz rust-ad734680af76d92f8e490141d72bf2a629e2d5f8.zip | |
Move predecessors cache invalidation back to basic_blocks_mut, add a couple more ensure_predecessors to prevent panics
Diffstat (limited to 'src/librustc_codegen_ssa/mir')
| -rw-r--r-- | src/librustc_codegen_ssa/mir/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_ssa/mir/mod.rs b/src/librustc_codegen_ssa/mir/mod.rs index 66ebe4095dc..6041232489d 100644 --- a/src/librustc_codegen_ssa/mir/mod.rs +++ b/src/librustc_codegen_ssa/mir/mod.rs @@ -265,7 +265,7 @@ fn create_funclets<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>( let funclet; let ret_llbb; - match mir[bb].terminator_opt().as_ref().map(|t| &t.kind) { + match mir[bb].terminator.as_ref().map(|t| &t.kind) { // This is a basic block that we're aborting the program for, // notably in an `extern` function. These basic blocks are inserted // so that we assert that `extern` functions do indeed not panic, |
