[clang] [flang] [flang] add -floop-interchange and enable it with opt levels (PR #140182)

Tarun Prabhu via cfe-commits cfe-commits at lists.llvm.org
Fri May 16 08:39:29 PDT 2025


================
@@ -421,7 +421,8 @@ static void CheckSubscripts(
 
 static void CheckSubscripts(
     semantics::SemanticsContext &context, CoarrayRef &ref) {
-  const Symbol &coarraySymbol{ref.GetBase().GetLastSymbol()};
+  const auto &base = ref.GetBase();
+  const Symbol &coarraySymbol{base.GetLastSymbol()};
----------------
tarunprabhu wrote:

I requested a review for #138793. It's probably best to proceed with this after that has been merged.

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


More information about the cfe-commits mailing list