[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:14:17 PST 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG114ce273d86a: [flang][runtime] Fix typo in assign.cpp (authored by klausler).

Repository:
  rG LLVM Github Monorepo

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

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.497725.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230215/cd0ac1a0/attachment.bin>


More information about the flang-commits mailing list