Skip to content

Commit

Permalink
Hash discriminant of LocalValue
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Dec 9, 2019
1 parent e017f57 commit afb4faa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_mir/interpret/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ impl Hash for IgnoreAllocId<'_, LocalState<'tcx>> {
layout: _,
} = self.0;

std::mem::discriminant(value).hash(state);
match value {
LocalValue::Live(op) => op.erase_alloc_id().hash(state),
LocalValue::Dead | LocalValue::Uninitialized => value.hash(state),
Expand Down

0 comments on commit afb4faa

Please sign in to comment.