Skip to content

Commit ac4baf3

Browse files
committed
Allow unreachable blocks for now
The cleanup blocks normally executed when unwinding are unreachable for now as unwinding is not yet implemented.
1 parent f706317 commit ac4baf3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/base.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_
105105
context.set_keep_intermediates(true);
106106
}
107107

108+
// TODO(bjorn3): Remove once unwinding is properly implemented
109+
context.set_allow_unreachable_blocks(true);
110+
108111
{
109112
let cx = CodegenCx::new(&context, cgu, tcx, supports_128bit_integers);
110113

0 commit comments

Comments
 (0)