Skip to content

Commit cca99c0

Browse files
authored
Add back return code before the second new else
1 parent bc707ba commit cca99c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang/lib/Optimizer/Analysis/AliasAnalysis.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,9 @@ AliasAnalysis::Source AliasAnalysis::getSource(mlir::Value v,
642642
defOp = nullptr;
643643
v = def;
644644
}
645+
646+
breakFromLoop = true;
647+
return;
645648
} else {
646649
// No further tracking for addresses loaded from memory for now.
647650
type = SourceKind::Indirect;

0 commit comments

Comments
 (0)