We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdc2f08 commit 931b069Copy full SHA for 931b069
compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
@@ -439,6 +439,13 @@ fn codegen_regular_intrinsic_call<'tcx>(
439
440
ret.write_cvalue(fx, a);
441
}
442
+ sym::is_val_statically_known => {
443
+ intrinsic_args!(fx, args => (_a); intrinsic);
444
+
445
+ // Unimplemented intrinsic defaults to false
446
+ let res = fx.bcx.ins().iconst(cranelift_codegen::ir::types::I8, false as i64);
447
+ ret.write_cvalue(fx, CValue::by_val(res, fx.tcx.types.bool));
448
+ }
449
sym::breakpoint => {
450
intrinsic_args!(fx, args => (); intrinsic);
451
0 commit comments