From 55e04d5236b5e45ddaad11df6b6c41ad6ca03f76 Mon Sep 17 00:00:00 2001 From: Nicholas Thompson Date: Tue, 23 Jan 2024 12:02:31 -0500 Subject: [PATCH] Further Implement `is_val_statically_known` --- src/intrinsics/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/intrinsics/mod.rs b/src/intrinsics/mod.rs index 15249402a63e7..f328ad93d260b 100644 --- a/src/intrinsics/mod.rs +++ b/src/intrinsics/mod.rs @@ -439,6 +439,12 @@ fn codegen_regular_intrinsic_call<'tcx>( ret.write_cvalue(fx, a); } + sym::is_val_statically_known => { + intrinsic_args!(fx, args => (_a); intrinsic); + + let res = fx.bcx.ins().iconst(types::I8, 0); + ret.write_cvalue(fx, CValue::by_val(res, ret.layout())); + } sym::breakpoint => { intrinsic_args!(fx, args => (); intrinsic);