Skip to content

Commit 7c5c346

Browse files
committed
add storage liveness field
1 parent 2524a89 commit 7c5c346

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compiler/rustc_middle/src/mir/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,8 @@ pub struct LocalDecl<'tcx> {
824824
/// │ │← `drop(x)` // This accesses `x: u32`.
825825
/// ```
826826
pub source_info: SourceInfo,
827+
828+
pub always_storage_live: bool,
827829
}
828830

829831
// `LocalDecl` is used a lot. Make sure it doesn't unintentionally get bigger.
@@ -949,6 +951,7 @@ impl<'tcx> LocalDecl<'tcx> {
949951
ty,
950952
user_ty: None,
951953
source_info,
954+
always_storage_live: false,
952955
}
953956
}
954957

compiler/rustc_middle/src/mir/visit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,7 @@ macro_rules! make_mir_visitor {
867867
internal: _,
868868
local_info: _,
869869
is_block_tail: _,
870+
always_storage_live: _,
870871
} = local_decl;
871872

872873
self.visit_ty($(& $mutability)? *ty, TyContext::LocalDecl {

0 commit comments

Comments
 (0)