Skip to content

Commit 5e51cf8

Browse files
committed
fix errors and warnings
1 parent f518d61 commit 5e51cf8

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

flang/include/flang/Lower/OpenACC.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class FirOpBuilder;
3838

3939
namespace Fortran {
4040
namespace evaluate {
41-
class ProcedureDesignator;
41+
struct ProcedureDesignator;
4242
} // namespace evaluate
4343

4444
namespace parser {

flang/lib/Semantics/resolve-directives.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3040,6 +3040,4 @@ void OmpAttributeVisitor::IssueNonConformanceWarning(
30403040
context_.Warn(common::UsageWarning::OpenMPUsage, source, "%s"_warn_en_US,
30413041
warnStrOS.str());
30423042
}
3043-
} // namespace Fortran::semantics
3044-
3045-
} // namespace Fortran::semantics
3043+
} // namespace Fortran::semantics

flang/lib/Semantics/symbol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ llvm::raw_ostream &operator<<(
146146
}
147147
if (!x.openACCRoutineInfos_.empty()) {
148148
os << " openACCRoutineInfos:";
149-
for (const auto x : x.openACCRoutineInfos_) {
149+
for (const auto &x : x.openACCRoutineInfos_) {
150150
os << x;
151151
}
152152
}

0 commit comments

Comments
 (0)