Skip to content

Commit

Permalink
Further Implement is_val_statically_known
Browse files Browse the repository at this point in the history
  • Loading branch information
NCGThompson committed Jan 23, 2024
1 parent 18e12dc commit 55e04d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/intrinsics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 55e04d5

Please sign in to comment.