Skip to content

Commit

Permalink
[flang][runtime] Fix typo in assign.cpp
Browse files Browse the repository at this point in the history
Variable name 'y' needs to be used in the declaration of 'yDesc'.

Differential Revision: https://reviews.llvm.org/D144117
  • Loading branch information
klausler committed Feb 15, 2023
1 parent 78e172f commit 114ce27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flang/runtime/assign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 114ce27

Please sign in to comment.