Skip to content

Commit 57d7438

Browse files
authored
Review usage of auto in Lower/ComponentPath.cpp (#1312)
1 parent f761dea commit 57d7438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/ComponentPath.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void Fortran::lower::ComponentPath::clear() {
3535
}
3636

3737
bool Fortran::lower::isRankedArrayAccess(const Fortran::evaluate::ArrayRef &x) {
38-
for (auto &sub : x.subscript()) {
38+
for (const Fortran::evaluate::Subscript &sub : x.subscript()) {
3939
if (std::visit(
4040
Fortran::common::visitors{
4141
[&](const Fortran::evaluate::Triplet &) { return true; },

0 commit comments

Comments
 (0)