[flang-commits] [PATCH] D148128: [flang] Fold IS_CONTIGUOUS for TYPE(*) when possible

Pete Steinfeld via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Apr 12 10:19:25 PDT 2023


PeteSteinfeld requested changes to this revision.
PeteSteinfeld added a comment.
This revision now requires changes to proceed.

Please make the change to fix the build error.



================
Comment at: flang/lib/Evaluate/check-expression.cpp:773-775
     } else if (const auto *details{
                    ultimate.detailsIf<semantics::ObjectEntityDetails>()}) {
+      return true;
----------------
I'm seeing compilation errors here because the variable `details` is not used, and my build has `-Werror=unused-variable` defined.

I'm using GCC 9.3.0.

If I change line 773 to just check against `nullptr`, everything builds and tests correctly.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148128/new/

https://reviews.llvm.org/D148128



More information about the flang-commits mailing list