Skip to content

Commit eb4d429

Browse files
committed
Fix for libgccjit 12
1 parent 1449894 commit eb4d429

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
15971597
}
15981598

15991599
#[cfg(not(feature = "master"))]
1600-
fn cleanup_landing_pad(&mut self, _pers_fn: RValue<'gcc>) -> (RValue<'gcc>, RValue<'gcc>) {
1600+
fn cleanup_landing_pad(&mut self, _pers_fn: Function<'gcc>) -> (RValue<'gcc>, RValue<'gcc>) {
16011601
let value1 = self
16021602
.current_func()
16031603
.new_local(self.location, self.u8_type.make_pointer(), "landing_pad0")

src/intrinsic/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ mod simd;
44
#[cfg(feature = "master")]
55
use std::iter;
66

7-
use gccjit::{ComparisonOp, Function, FunctionType, RValue, ToRValue, Type, UnaryOp};
7+
#[cfg(feature = "master")]
8+
use gccjit::Type;
9+
use gccjit::{ComparisonOp, Function, FunctionType, RValue, ToRValue, UnaryOp};
810
#[cfg(feature = "master")]
911
use rustc_abi::ExternAbi;
1012
use rustc_abi::{BackendRepr, HasDataLayout};

0 commit comments

Comments
 (0)