Skip to content

Commit 977d6cf

Browse files
[Scalar] Remove a redaundant cast (NFC) (#168284)
ThisPartition is already of type int. Identified with readability-redundant-casting.
1 parent 306b5a3 commit 977d6cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/LoopDistribute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ class InstPartitionContainer {
520520
// -1 means belonging to multiple partitions.
521521
else if (Partition == -1)
522522
break;
523-
else if (Partition != (int)ThisPartition)
523+
else if (Partition != ThisPartition)
524524
Partition = -1;
525525
}
526526
assert(Partition != -2 && "Pointer not belonging to any partition");

0 commit comments

Comments
 (0)