diff --git a/flang/include/flang/Parser/openmp-utils.h b/flang/include/flang/Parser/openmp-utils.h index 7396e57144b90..d4b739f4c9529 100644 --- a/flang/include/flang/Parser/openmp-utils.h +++ b/flang/include/flang/Parser/openmp-utils.h @@ -126,6 +126,16 @@ const OpenMPConstruct *GetOmp(const ExecutionPartConstruct &x); const OpenMPLoopConstruct *GetOmpLoop(const ExecutionPartConstruct &x); const DoConstruct *GetDoConstruct(const ExecutionPartConstruct &x); +// Is the template argument "Statement" for some T? +template struct IsStatement { + static constexpr bool value{false}; +}; +template struct IsStatement> { + static constexpr bool value{true}; +}; + +std::optional