Skip to content

Commit 831d2ed

Browse files
committed
Add validity_invariants_of to cranelift codegen (untested)
1 parent a515b9f commit 831d2ed

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_cranelift/src/intrinsics

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
720720
dest.write_cvalue(fx, val);
721721
};
722722

723-
pref_align_of | needs_drop | type_id | type_name | variant_count, () {
723+
pref_align_of | needs_drop | type_id | type_name | variant_count | validity_invariants_of, () {
724724
let const_val =
725725
fx.tcx.const_eval_instance(ParamEnv::reveal_all(), instance, None).unwrap();
726726
let val = crate::constant::codegen_const_value(

0 commit comments

Comments
 (0)