Skip to content

Commit

Permalink
[NFC][flang] Add the missed constexpr
Browse files Browse the repository at this point in the history
Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D128598
  • Loading branch information
PeixinQiao committed Jun 29, 2022
1 parent 0204fd2 commit 794b3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flang/lib/Lower/OpenMP.cpp
Expand Up @@ -378,7 +378,7 @@ createBodyOfOp(Op &op, Fortran::lower::AbstractConverter &converter,
if (clauses && !outerCombined)
privatizeVars(converter, *clauses);

if (std::is_same_v<Op, omp::ParallelOp>) {
if constexpr (std::is_same_v<Op, omp::ParallelOp>) {
threadPrivatizeVars(converter, eval);
if (clauses)
genCopyinClause(converter, *clauses);
Expand Down

0 comments on commit 794b3bf

Please sign in to comment.