diff options
| author | Bryan Garza <1396101+bryangarza@users.noreply.github.com> | 2022-12-29 23:44:16 +0000 |
|---|---|---|
| committer | Bryan Garza <1396101+bryangarza@users.noreply.github.com> | 2023-01-23 23:56:22 +0000 |
| commit | 164ff640131cf90f5a6e8639a5cdc7ece297ba83 (patch) | |
| tree | 72bb6d01d6e0bedc24452d43e6ecc23b2d0b3141 | |
| parent | eea42733ac070b62492037107ee38028abb71f1a (diff) | |
| download | rust-164ff640131cf90f5a6e8639a5cdc7ece297ba83.tar.gz rust-164ff640131cf90f5a6e8639a5cdc7ece297ba83.zip | |
Update codegen cranelift for ConstEvalCounter
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/base.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/constant.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/base.rs b/compiler/rustc_codegen_cranelift/src/base.rs index 89d955e8bf2..6e584c308c1 100644 --- a/compiler/rustc_codegen_cranelift/src/base.rs +++ b/compiler/rustc_codegen_cranelift/src/base.rs @@ -789,6 +789,7 @@ fn codegen_stmt<'tcx>( StatementKind::StorageLive(_) | StatementKind::StorageDead(_) | StatementKind::Deinit(_) + | StatementKind::ConstEvalCounter | StatementKind::Nop | StatementKind::FakeRead(..) | StatementKind::Retag { .. } diff --git a/compiler/rustc_codegen_cranelift/src/constant.rs b/compiler/rustc_codegen_cranelift/src/constant.rs index 51450897bfc..49c4f1aaaef 100644 --- a/compiler/rustc_codegen_cranelift/src/constant.rs +++ b/compiler/rustc_codegen_cranelift/src/constant.rs @@ -530,6 +530,7 @@ pub(crate) fn mir_operand_get_const_val<'tcx>( | StatementKind::Retag(_, _) | StatementKind::AscribeUserType(_, _) | StatementKind::Coverage(_) + | StatementKind::ConstEvalCounter | StatementKind::Nop => {} } } |
