Skip to content

Commit 55e04d5

Browse files
committed
Further Implement is_val_statically_known
1 parent 18e12dc commit 55e04d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/intrinsics/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,12 @@ fn codegen_regular_intrinsic_call<'tcx>(
439439

440440
ret.write_cvalue(fx, a);
441441
}
442+
sym::is_val_statically_known => {
443+
intrinsic_args!(fx, args => (_a); intrinsic);
444+
445+
let res = fx.bcx.ins().iconst(types::I8, 0);
446+
ret.write_cvalue(fx, CValue::by_val(res, ret.layout()));
447+
}
442448
sym::breakpoint => {
443449
intrinsic_args!(fx, args => (); intrinsic);
444450

0 commit comments

Comments
 (0)