[clang] [NFC] Factor out common parts of ArraySections into its own class (PR #89639)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 24 10:28:07 PDT 2024


================
@@ -443,12 +443,17 @@ ExprDependence clang::computeDependence(ObjCIndirectCopyRestoreExpr *E) {
   return E->getSubExpr()->getDependence();
 }
 
-ExprDependence clang::computeDependence(OMPArraySectionExpr *E) {
+ExprDependence clang::computeDependence(ArraySectionExpr *E) {
   auto D = E->getBase()->getDependence();
   if (auto *LB = E->getLowerBound())
     D |= LB->getDependence();
   if (auto *Len = E->getLength())
     D |= Len->getDependence();
+
+  if (E->isOMPArraySection()) {
----------------
alexey-bataev wrote:

Nice catch.

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


More information about the cfe-commits mailing list