File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -713,7 +713,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
713
713
let res = CValue :: by_val ( swap ( & mut fx. bcx , val) , arg. layout ( ) ) ;
714
714
ret. write_cvalue ( fx, res) ;
715
715
}
716
- sym:: assert_inhabited | sym:: assert_zero_valid | sym:: assert_uninit_valid => {
716
+ sym:: assert_inhabited | sym:: assert_zero_valid | sym:: assert_mem_uninitialized_valid => {
717
717
intrinsic_args ! ( fx, args => ( ) ; intrinsic) ;
718
718
719
719
let layout = fx. layout_of ( substs. type_at ( 0 ) ) ;
@@ -742,7 +742,9 @@ fn codegen_regular_intrinsic_call<'tcx>(
742
742
return ;
743
743
}
744
744
745
- if intrinsic == sym:: assert_uninit_valid && !fx. tcx . permits_uninit_init ( layout) {
745
+ if intrinsic == sym:: assert_mem_uninitialized_valid
746
+ && !fx. tcx . permits_uninit_init ( layout)
747
+ {
746
748
with_no_trimmed_paths ! ( {
747
749
crate :: base:: codegen_panic(
748
750
fx,
You can’t perform that action at this time.
0 commit comments