We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e374a7 commit 580e754Copy full SHA for 580e754
llvm/lib/Transforms/Utils/MemorySSA.cpp
@@ -763,8 +763,8 @@ void MemorySSA::verifyDefUses(Function &F) const {
763
for (BasicBlock &B : F) {
764
// Phi nodes are attached to basic blocks
765
if (MemoryPhi *Phi = getMemoryAccess(&B)) {
766
- assert(Phi->getNumOperands() ==
767
- std::distance(pred_begin(&B), pred_end(&B)) &&
+ assert(Phi->getNumOperands() == static_cast<unsigned>(std::distance(
+ pred_begin(&B), pred_end(&B))) &&
768
"Incomplete MemoryPhi Node");
769
for (unsigned I = 0, E = Phi->getNumIncomingValues(); I != E; ++I)
770
verifyUseInDefs(Phi->getIncomingValue(I), Phi);
0 commit comments