Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 164ff64

Browse files
committed
Update codegen cranelift for ConstEvalCounter
1 parent eea4273 commit 164ff64

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_codegen_cranelift/src/base.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ fn codegen_stmt<'tcx>(
789789
StatementKind::StorageLive(_)
790790
| StatementKind::StorageDead(_)
791791
| StatementKind::Deinit(_)
792+
| StatementKind::ConstEvalCounter
792793
| StatementKind::Nop
793794
| StatementKind::FakeRead(..)
794795
| StatementKind::Retag { .. }

compiler/rustc_codegen_cranelift/src/constant.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ pub(crate) fn mir_operand_get_const_val<'tcx>(
530530
| StatementKind::Retag(_, _)
531531
| StatementKind::AscribeUserType(_, _)
532532
| StatementKind::Coverage(_)
533+
| StatementKind::ConstEvalCounter
533534
| StatementKind::Nop => {}
534535
}
535536
}

0 commit comments

Comments
 (0)