Skip to content

Commit 3377b9d

Browse files
committed
Restore original PR
1 parent 5c9fda1 commit 3377b9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flang/lib/Optimizer/Analysis/AliasAnalysis.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,7 @@ AliasAnalysis::Source AliasAnalysis::getSource(mlir::Value v,
598598
} else
599599
breakFromLoop = true;
600600
})
601-
.Case<fir::LoadOp>([&v, &defOp, &ty, &followingData, &attributes,
602-
&isCapturedInInternalProcedure, &approximateSource,
603-
&global, &type, &breakFromLoop](auto op) {
601+
.Case<fir::LoadOp>([&](auto op) {
604602
// If load is inside target and it points to mapped item,
605603
// continue tracking.
606604
Operation *loadMemrefOp = op.getMemref().getDefiningOp();
@@ -643,6 +641,8 @@ AliasAnalysis::Source AliasAnalysis::getSource(mlir::Value v,
643641
} else if (isDummyArgument(def)) {
644642
defOp = nullptr;
645643
v = def;
644+
} else {
645+
type = SourceKind::Indirect;
646646
}
647647
} else {
648648
// No further tracking for addresses loaded from memory for now.

0 commit comments

Comments
 (0)