[flang-commits] [PATCH] D144117: [flang][runtime] Fix typo in assign.cpp

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Feb 15 10:10:22 PST 2023


klausler created this revision.
klausler added a reviewer: vzakhari.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

Variable name 'y' needs to be used in the declaration of 'yDesc'.


https://reviews.llvm.org/D144117

Files:
  flang/runtime/assign.cpp


Index: flang/runtime/assign.cpp
===================================================================
--- flang/runtime/assign.cpp
+++ flang/runtime/assign.cpp
@@ -128,7 +128,7 @@
 static bool MayAlias(const Descriptor &x, const Descriptor &y) {
   const char *xDesc{reinterpret_cast<const char *>(&x)};
   const char *xDescLast{xDesc + x.SizeInBytes()};
-  const char *yDesc{reinterpret_cast<const char *>(&x)};
+  const char *yDesc{reinterpret_cast<const char *>(&y)};
   const char *yDescLast{yDesc + y.SizeInBytes()};
   std::int64_t xLeast, xMost, yLeast, yMost;
   MaximalByteOffsetRange(x, xLeast, xMost);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144117.497722.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230215/17af7429/attachment-0001.bin>


More information about the flang-commits mailing list