Skip to content

Commit 5c9fda1

Browse files
authored
Make all captures explicit for LoadOp case
1 parent afbb0ce commit 5c9fda1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flang/lib/Optimizer/Analysis/AliasAnalysis.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,9 @@ AliasAnalysis::Source AliasAnalysis::getSource(mlir::Value v,
598598
} else
599599
breakFromLoop = true;
600600
})
601-
.Case<fir::LoadOp>([&,&breakFromLoop](auto op) {
601+
.Case<fir::LoadOp>([&v, &defOp, &ty, &followingData, &attributes,
602+
&isCapturedInInternalProcedure, &approximateSource,
603+
&global, &type, &breakFromLoop](auto op) {
602604
// If load is inside target and it points to mapped item,
603605
// continue tracking.
604606
Operation *loadMemrefOp = op.getMemref().getDefiningOp();

0 commit comments

Comments
 (0)