[flang-commits] [flang] 6479218 - Fix -Werror build
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Thu Mar 14 09:07:12 PDT 2024
Author: Krzysztof Parzyszek
Date: 2024-03-14T11:07:01-05:00
New Revision: 6479218932117ab36cba578bb458ee7c0fb4bf0a
URL: https://github.com/llvm/llvm-project/commit/6479218932117ab36cba578bb458ee7c0fb4bf0a
DIFF: https://github.com/llvm/llvm-project/commit/6479218932117ab36cba578bb458ee7c0fb4bf0a.diff
LOG: Fix -Werror build
In file included from ../llvm-project/flang/lib/Lower/OpenMP/Clauses.cpp:9:
../llvm-project/flang/lib/Lower/OpenMP/Clauses.h:195:17: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
195 | return Clause{id, specific, source};
| ^~~~~~~~~~~~
| { }
Added:
Modified:
flang/lib/Lower/OpenMP/Clauses.h
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenMP/Clauses.h b/flang/lib/Lower/OpenMP/Clauses.h
index 1576eec766ccf1..586875036cb376 100644
--- a/flang/lib/Lower/OpenMP/Clauses.h
+++ b/flang/lib/Lower/OpenMP/Clauses.h
@@ -192,7 +192,7 @@ struct Clause : public tomp::ClauseT<SymIdent, SymReference> {
template <typename Specific>
Clause makeClause(llvm::omp::Clause id, Specific &&specific,
parser::CharBlock source = {}) {
- return Clause{id, specific, source};
+ return Clause{{id, specific}, source};
}
Clause makeClause(const Fortran::parser::OmpClause &cls,
More information about the flang-commits
mailing list