We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d29dc05 commit 263da25Copy full SHA for 263da25
compiler/rustc_mir_transform/src/ssa.rs
@@ -162,7 +162,7 @@ impl<'tcx> Visitor<'tcx> for SsaVisitor {
162
Set1::Empty | Set1::Many => false,
163
Set1::One(LocationExtended::Arg) => true,
164
Set1::One(LocationExtended::Plain(assign)) => {
165
- assign.dominates(loc, &self.dominators)
+ assign.successor_within_block().dominates(loc, &self.dominators)
166
}
167
};
168
// We are visiting a use that is not dominated by an assignment.
0 commit comments