We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba5dcc7 commit 61faffbCopy full SHA for 61faffb
compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
@@ -442,7 +442,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
442
sym::is_val_statically_known => {
443
intrinsic_args!(fx, args => (_a); intrinsic);
444
445
- // FIXME impliment intrinsic or guarantee propogation of false
+ // FIXME actually return `true` in case the argument is a constant
446
let res = fx.bcx.ins().iconst(cranelift_codegen::ir::types::I8, false as i64);
447
ret.write_cvalue(fx, CValue::by_val(res, ret.layout()));
448
}
tests/codegen/is_val_statically_known.rs
@@ -1,5 +1,3 @@
1
-// #[cfg(bootstrap)]
2
-// ignore-stage1
3
// compile-flags: --crate-type=lib -Zmerge-functions=disabled
4
5
#![feature(core_intrinsics)]
0 commit comments