diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp --- a/flang/lib/Lower/OpenMP.cpp +++ b/flang/lib/Lower/OpenMP.cpp @@ -378,7 +378,7 @@ if (clauses && !outerCombined) privatizeVars(converter, *clauses); - if (std::is_same_v) { + if constexpr (std::is_same_v) { threadPrivatizeVars(converter, eval); if (clauses) genCopyinClause(converter, *clauses);