about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-02-26 19:11:58 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2022-02-26 19:35:33 +0100
commitac4baf3fd632100e68b5f8830a5c077005eeac23 (patch)
tree32db2957802718710eb609b8cb190fa2105f43ed
parentf7063174a4681b8194d7e2e48305d59ccf98b795 (diff)
downloadrust-ac4baf3fd632100e68b5f8830a5c077005eeac23.tar.gz
rust-ac4baf3fd632100e68b5f8830a5c077005eeac23.zip
Allow unreachable blocks for now
The cleanup blocks normally executed when unwinding are unreachable for
now as unwinding is not yet implemented.
-rw-r--r--Cargo.lock4
-rw-r--r--src/base.rs3
2 files changed, 5 insertions, 2 deletions
diff --git a/Cargo.lock b/Cargo.lock
index d4c407b0974..a4499d0ea8c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -41,7 +41,7 @@ dependencies = [
 [[package]]
 name = "gccjit"
 version = "1.0.0"
-source = "git+https://github.com/antoyo/gccjit.rs#cbb07c6601ba4246fc2967c4d770403c57192ca2"
+source = "git+https://github.com/antoyo/gccjit.rs#b9f188d2ce2c7b12211e90903f1b2cf309785b85"
 dependencies = [
  "gccjit_sys",
 ]
@@ -49,7 +49,7 @@ dependencies = [
 [[package]]
 name = "gccjit_sys"
 version = "0.0.1"
-source = "git+https://github.com/antoyo/gccjit.rs#cbb07c6601ba4246fc2967c4d770403c57192ca2"
+source = "git+https://github.com/antoyo/gccjit.rs#b9f188d2ce2c7b12211e90903f1b2cf309785b85"
 dependencies = [
  "libc 0.1.12",
 ]
diff --git a/src/base.rs b/src/base.rs
index 6808993182a..f5aca35cdcb 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -105,6 +105,9 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_
             context.set_keep_intermediates(true);
         }
 
+        // TODO(bjorn3): Remove once unwinding is properly implemented
+        context.set_allow_unreachable_blocks(true);
+
         {
             let cx = CodegenCx::new(&context, cgu, tcx, supports_128bit_integers);