[flang-commits] [flang] 57d87ed - [flang][NFC] Add parenthesis to avoid warning (#131219)

via flang-commits flang-commits at lists.llvm.org
Thu Mar 13 14:28:39 PDT 2025


Author: Valentin Clement (バレンタイン クレメン)
Date: 2025-03-13T14:28:35-07:00
New Revision: 57d87ed7f09773a328f352b1d632f9e476e1c013

URL: https://github.com/llvm/llvm-project/commit/57d87ed7f09773a328f352b1d632f9e476e1c013
DIFF: https://github.com/llvm/llvm-project/commit/57d87ed7f09773a328f352b1d632f9e476e1c013.diff

LOG: [flang][NFC] Add parenthesis to avoid warning (#131219)

Remove warning introduced in 369da8421c2f7

Added: 
    

Modified: 
    flang/include/flang/Lower/BoxAnalyzer.h

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Lower/BoxAnalyzer.h b/flang/include/flang/Lower/BoxAnalyzer.h
index cd9037360a56b..3b68062904671 100644
--- a/flang/include/flang/Lower/BoxAnalyzer.h
+++ b/flang/include/flang/Lower/BoxAnalyzer.h
@@ -403,9 +403,9 @@ class BoxAnalyzer : public fir::details::matcher<BoxAnalyzer> {
                 continue;
               }
             } else if (subs.ubound().isStar()) {
-              assert(Fortran::semantics::IsNamedConstant(sym) ||
-                     Fortran::semantics::IsCUDAShared(sym) &&
-                         "expect implied shape constant");
+              assert((Fortran::semantics::IsNamedConstant(sym) ||
+                      Fortran::semantics::IsCUDAShared(sym)) &&
+                     "expect implied shape constant");
               shapes.push_back(fir::SequenceType::getUnknownExtent());
               continue;
             }


        


More information about the flang-commits mailing list