[flang-commits] [flang] 114ce27 - [flang][runtime] Fix typo in assign.cpp
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Wed Feb 15 10:14:05 PST 2023
Author: Peter Klausler
Date: 2023-02-15T10:12:43-08:00
New Revision: 114ce273d86a091f61446c8778dbf102942c96cf
URL: https://github.com/llvm/llvm-project/commit/114ce273d86a091f61446c8778dbf102942c96cf
DIFF: https://github.com/llvm/llvm-project/commit/114ce273d86a091f61446c8778dbf102942c96cf.diff
LOG: [flang][runtime] Fix typo in assign.cpp
Variable name 'y' needs to be used in the declaration of 'yDesc'.
Differential Revision: https://reviews.llvm.org/D144117
Added:
Modified:
flang/runtime/assign.cpp
Removed:
################################################################################
diff --git a/flang/runtime/assign.cpp b/flang/runtime/assign.cpp
index 76f929ec0e7ab..2f9814dad721b 100644
--- a/flang/runtime/assign.cpp
+++ b/flang/runtime/assign.cpp
@@ -128,7 +128,7 @@ static inline bool RangesOverlap(const char *aStart, const char *aEnd,
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);
More information about the flang-commits
mailing list