diff --git a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp index 0c8b9043fcbbb..ab292e833852f 100644 --- a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp +++ b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp @@ -520,7 +520,7 @@ class InstPartitionContainer { // -1 means belonging to multiple partitions. else if (Partition == -1) break; - else if (Partition != (int)ThisPartition) + else if (Partition != ThisPartition) Partition = -1; } assert(Partition != -2 && "Pointer not belonging to any partition");