[IRSim][NFC] Removing warning from IRSimilarityIdentifier

This commit is contained in:
Andrew Litteken 2020-09-24 00:26:21 -05:00
parent 0328feb086
commit beeceb92c0
1 changed files with 2 additions and 2 deletions

View File

@ -173,8 +173,8 @@ IRSimilarityCandidate::IRSimilarityCandidate(unsigned StartIdx, unsigned Len,
assert(LastInstIt != nullptr && "Instruction is nullptr!");
assert(StartIdx + Len > StartIdx &&
"Overflow for IRSimilarityCandidate range?");
assert(Len - 1 ==
std::distance(iterator(FirstInstIt), iterator(LastInstIt)) &&
assert(Len - 1 == static_cast<unsigned>(std::distance(
iterator(FirstInstIt), iterator(LastInstIt))) &&
"Length of the first and last IRInstructionData do not match the "
"given length");