[flang-commits] [flang] 794b3bf - [NFC][flang] Add the missed `constexpr`
via flang-commits
flang-commits at lists.llvm.org
Tue Jun 28 21:09:04 PDT 2022
Author: Peixin-Qiao
Date: 2022-06-29T12:07:29+08:00
New Revision: 794b3bf7767c184d953d0554c4041edb31a3194d
URL: https://github.com/llvm/llvm-project/commit/794b3bf7767c184d953d0554c4041edb31a3194d
DIFF: https://github.com/llvm/llvm-project/commit/794b3bf7767c184d953d0554c4041edb31a3194d.diff
LOG: [NFC][flang] Add the missed `constexpr`
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D128598
Added:
Modified:
flang/lib/Lower/OpenMP.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp
index c60fb711f55d..b8496cd9b06b 100644
--- a/flang/lib/Lower/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP.cpp
@@ -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);
More information about the flang-commits
mailing list