Skip to content

Commit

Permalink
[flang] Fix -Wunneeded-internal-declaration in DirectivesCommon.h (NFC)
Browse files Browse the repository at this point in the history
/llvm-project/flang/lib/Lower/DirectivesCommon.h:910:1:
error: 'static' function 'peelOuterConvert' declared in header file should be declared 'static inline' [-Werror,-Wunneeded-internal-declaration]
peelOuterConvert(Fortran::semantics::SomeExpr &expr) {
^
1 error generated.
  • Loading branch information
DamonFool committed Sep 4, 2024
1 parent 2cf36f0 commit 7330c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flang/lib/Lower/DirectivesCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ struct PeelConvert {
}
};

static Fortran::semantics::SomeExpr
static inline Fortran::semantics::SomeExpr
peelOuterConvert(Fortran::semantics::SomeExpr &expr) {
if (auto peeled = PeelConvert::visit(expr))
return *peeled;
Expand Down

0 comments on commit 7330c9b

Please sign in to comment.