Skip to content

Commit 6479218

Browse files
committed
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}; | ^~~~~~~~~~~~ | { }
1 parent 52557bc commit 6479218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/OpenMP/Clauses.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ struct Clause : public tomp::ClauseT<SymIdent, SymReference> {
192192
template <typename Specific>
193193
Clause makeClause(llvm::omp::Clause id, Specific &&specific,
194194
parser::CharBlock source = {}) {
195-
return Clause{id, specific, source};
195+
return Clause{{id, specific}, source};
196196
}
197197

198198
Clause makeClause(const Fortran::parser::OmpClause &cls,

0 commit comments

Comments
 (0)