Skip to content

Commit beeceb9

Browse files
[IRSim][NFC] Removing warning from IRSimilarityIdentifier
1 parent 0328feb commit beeceb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Analysis/IRSimilarityIdentifier.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ IRSimilarityCandidate::IRSimilarityCandidate(unsigned StartIdx, unsigned Len,
173173
assert(LastInstIt != nullptr && "Instruction is nullptr!");
174174
assert(StartIdx + Len > StartIdx &&
175175
"Overflow for IRSimilarityCandidate range?");
176-
assert(Len - 1 ==
177-
std::distance(iterator(FirstInstIt), iterator(LastInstIt)) &&
176+
assert(Len - 1 == static_cast<unsigned>(std::distance(
177+
iterator(FirstInstIt), iterator(LastInstIt))) &&
178178
"Length of the first and last IRInstructionData do not match the "
179179
"given length");
180180

0 commit comments

Comments
 (0)