Skip to content

Commit f8725cd

Browse files
committed
Auto merge of #156549 - GuillaumeGomez:ci-gcc-core, r=Kobzol
Add CI check when building sysroot with GCC backend and running libcore tests with it Fixes #882. Is it what you had in mind @Kobzol? r? @Kobzol
2 parents 5e72aee + 0a4077f commit f8725cd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/intrinsic/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,10 @@ fn try_intrinsic<'a, 'b, 'gcc, 'tcx>(
13581358
dest: PlaceRef<'tcx, RValue<'gcc>>,
13591359
) {
13601360
if !bx.sess().panic_strategy().unwinds() {
1361-
bx.call(bx.type_void(), None, None, try_func, &[data], None, None);
1361+
let param_type = bx.u8_type.make_pointer();
1362+
let fn_type =
1363+
bx.context.new_function_pointer_type(None, bx.type_void(), &[param_type], false);
1364+
bx.call(fn_type, None, None, try_func, &[data], None, None);
13621365
// Return 0 unconditionally from the intrinsic call;
13631366
// we can never unwind.
13641367
OperandValue::Immediate(bx.const_i32(0)).store(bx, dest);

0 commit comments

Comments
 (0)