Skip to content

Commit 57b7fe4

Browse files
committed
Fixed comments.
1 parent 5c9d4a1 commit 57b7fe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flang/lib/Optimizer/HLFIR/Transforms/OptimizedBufferization.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ class ArraySectionAnalyzer {
167167
enum class SlicesOverlapKind {
168168
// Slices overlap is unknown.
169169
Unknown,
170-
// Slices are definitely disjoint.
171-
DefinitelyIdentical,
172170
// Slices are definitely identical.
171+
DefinitelyIdentical,
172+
// Slices are definitely disjoint.
173173
DefinitelyDisjoint,
174174
// Slices may be either disjoint or identical,
175175
// i.e. there is definitely no partial overlap.
@@ -241,7 +241,7 @@ class ArraySectionAnalyzer {
241241
static std::pair<mlir::Value, mlir::Value>
242242
getOrderedBounds(const SectionDesc &desc) {
243243
mlir::Value stride = desc.stride;
244-
// Null stride means stride-1.
244+
// Null stride means stride=1.
245245
if (!stride)
246246
return {desc.lb, desc.ub};
247247
// Reverse the bounds, if stride is negative.

0 commit comments

Comments
 (0)