File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ void DataSharingProcessor::privatize() {
415415 for (const Fortran::semantics::Symbol *sym : privatizedSymbols) {
416416 if (const auto *commonDet =
417417 sym->detailsIf <Fortran::semantics::CommonBlockDetails>()) {
418- for (const auto mem : commonDet->objects ()) {
418+ for (const auto & mem : commonDet->objects ()) {
419419 cloneSymbol (&*mem);
420420 copyFirstPrivateSymbol (&*mem);
421421 }
@@ -431,7 +431,7 @@ void DataSharingProcessor::copyLastPrivatize(mlir::Operation *op) {
431431 for (const Fortran::semantics::Symbol *sym : privatizedSymbols)
432432 if (const auto *commonDet =
433433 sym->detailsIf <Fortran::semantics::CommonBlockDetails>()) {
434- for (const auto mem : commonDet->objects ()) {
434+ for (const auto & mem : commonDet->objects ()) {
435435 copyLastPrivateSymbol (&*mem, &lastPrivIP);
436436 }
437437 } else {
You can’t perform that action at this time.
0 commit comments