[flang-commits] [flang] [Flang][OpenMP] Add Semantics support for Nested OpenMPLoopConstructs (PR #145917)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Mon Jun 30 06:35:55 PDT 2025


================
@@ -4231,6 +4231,15 @@ static void genOMP(lower::AbstractConverter &converter, lower::SymMap &symTable,
   mlir::Location currentLocation =
       converter.genLocation(beginLoopDirective.source);
 
+  auto &optLoopCons =
+      std::get<std::optional<parser::NestedConstruct>>(loopConstruct.t);
+  if (optLoopCons.has_value())
----------------
kparzysz wrote:

Please add braces here.  This is the common convention even for single statements when the statement contains its own sub-statements.

https://github.com/llvm/llvm-project/pull/145917


More information about the flang-commits mailing list