diff --git a/sapfor/experts/Sapfor_2017/_src/LoopAnalyzer/loop_analyzer.cpp b/sapfor/experts/Sapfor_2017/_src/LoopAnalyzer/loop_analyzer.cpp index f9652f8..04a69ee 100644 --- a/sapfor/experts/Sapfor_2017/_src/LoopAnalyzer/loop_analyzer.cpp +++ b/sapfor/experts/Sapfor_2017/_src/LoopAnalyzer/loop_analyzer.cpp @@ -2088,7 +2088,7 @@ void loopAnalyzer(SgFile *file, vector ®ions, maplineNumber() > 0) + if (st->lineNumber() > 0 && !sharedMemoryParallelization) { auto itF = privatesByModule.find(st->symbol()->identifier()); @@ -2105,9 +2105,9 @@ void loopAnalyzer(SgFile *file, vector ®ions, mapsecond.begin(); it != itF->second.end(); ++it) - privatesVars.insert(*it); + + for (auto it = itF->second.begin(); it != itF->second.end(); ++it) + privatesVars.insert(*it); } } else