[flang-commits] [flang] 05b3c90 - [flang] Fix build failure
V Donaldson via flang-commits
flang-commits at lists.llvm.org
Thu Jul 28 16:41:31 PDT 2022
Author: V Donaldson
Date: 2022-07-28T16:41:05-07:00
New Revision: 05b3c900c92165cd5537c25a9b93876a44b7fb5a
URL: https://github.com/llvm/llvm-project/commit/05b3c900c92165cd5537c25a9b93876a44b7fb5a
DIFF: https://github.com/llvm/llvm-project/commit/05b3c900c92165cd5537c25a9b93876a44b7fb5a.diff
LOG: [flang] Fix build failure
Added:
Modified:
flang/lib/Lower/OpenMP.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp
index 30aa5b14c269..c7dc6f5ed02a 100644
--- a/flang/lib/Lower/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP.cpp
@@ -61,9 +61,10 @@ getOmpObjectSymbol(const Fortran::parser::OmpObject &ompObject) {
}
template <typename T>
-static void createPrivateVarSyms(Fortran::lower::AbstractConverter &converter,
- const T *clause,
- Block *lastPrivBlock = nullptr) {
+static void
+createPrivateVarSyms(Fortran::lower::AbstractConverter &converter,
+ const T *clause,
+ [[maybe_unused]] Block *lastPrivBlock = nullptr) {
const Fortran::parser::OmpObjectList &ompObjectList = clause->v;
for (const Fortran::parser::OmpObject &ompObject : ompObjectList.v) {
Fortran::semantics::Symbol *sym = getOmpObjectSymbol(ompObject);
More information about the flang-commits
mailing list