Skip to content

Commit ddb41ee

Browse files
fix failures seen in target-private-multiple-variables.f90
1 parent 3277c7c commit ddb41ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flang/lib/Optimizer/OpenMP/MapsForPrivatizedSymbols.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ class MapsForPrivatizedSymbolsPass
113113
for (auto mapInfoOp : mapInfoOps)
114114
addMapInfoOp(targetOp, mapInfoOp);
115115
}
116+
void addMapInfoOps(omp::TargetOp targetOp,
117+
llvm::SmallVectorImpl<omp::MapInfoOp> &mapInfoOps) {
118+
for (auto mapInfoOp : mapInfoOps)
119+
addMapInfoOp(targetOp, mapInfoOp);
120+
}
116121
void runOnOperation() override {
117122
ModuleOp module = getOperation()->getParentOfType<ModuleOp>();
118123
fir::KindMapping kindMap = fir::getKindMapping(module);

0 commit comments

Comments
 (0)