Skip to content

Commit

Permalink
Fix -Werror build
Browse files Browse the repository at this point in the history
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};
      |                 ^~~~~~~~~~~~
      |                 {           }
  • Loading branch information
kparzysz committed Mar 14, 2024
1 parent 52557bc commit 6479218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flang/lib/Lower/OpenMP/Clauses.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6479218

Please sign in to comment.