Skip to content

Commit 381416a

Browse files
committed
[flang] Fixed compilation warning inside assertion.
1 parent 3874620 commit 381416a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ class ReshapeAsElementalConversion
10891089
mlir::ValueRange extents,
10901090
mlir::ValueRange indices) {
10911091
std::size_t rank = extents.size();
1092-
assert(rank = indices.size());
1092+
assert(rank == indices.size());
10931093
mlir::Type indexType = builder.getIndexType();
10941094
mlir::Value zero = builder.createIntegerConstant(loc, indexType, 0);
10951095
mlir::Value one = builder.createIntegerConstant(loc, indexType, 1);

0 commit comments

Comments
 (0)