[clang] [flang] [flang] Support -f(no-)protect-parens (PR #170505)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 22 02:02:54 PST 2026


================
@@ -1733,27 +1751,29 @@ class HlfirBuilder {
       assert(right.isArray() && "must have at least one array operand");
       shape = hlfir::genShape(loc, builder, right);
     }
-    auto genKernel = [&op, &left, &right, &binaryOp](
+    // Array operations may need to handle reassoc flag inside of
+    // hlfir.elemental
----------------
jeanPerier wrote:

nit: I do not think you need to add a comment to justify `noReassoc` needs to be captured. At least for me this would distract me from the big picture of what genKernel is doing when reading this code outside of the context of this PR.

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


More information about the cfe-commits mailing list