Fix MSVC warnings by adding a cast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144721 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nadav Rotem 2011-11-15 22:54:21 +00:00
parent f8c10e5cb1
commit de631128d6

View File

@ -3827,8 +3827,8 @@ LSRInstance::LSRInstance(const TargetLowering *tli, Loop *l, Pass *P)
// Remove any extra phis created by processing inner loops.
SmallVector<WeakVH, 16> DeadInsts;
SCEVExpander Rewriter(SE, "lsr");
Changed |= Rewriter.replaceCongruentIVs(L, &DT, DeadInsts);
Changed |= DeleteTriviallyDeadInstructions(DeadInsts);
Changed |= (bool)Rewriter.replaceCongruentIVs(L, &DT, DeadInsts);
Changed |= (bool)DeleteTriviallyDeadInstructions(DeadInsts);
}
DEBUG(dbgs() << "LSR skipping outer loop " << *L << "\n");
return;
@ -3880,8 +3880,8 @@ LSRInstance::LSRInstance(const TargetLowering *tli, Loop *l, Pass *P)
// Remove any extra phis created by processing inner loops.
SmallVector<WeakVH, 16> DeadInsts;
SCEVExpander Rewriter(SE, "lsr");
Changed |= Rewriter.replaceCongruentIVs(L, &DT, DeadInsts);
Changed |= DeleteTriviallyDeadInstructions(DeadInsts);
Changed |= (bool)Rewriter.replaceCongruentIVs(L, &DT, DeadInsts);
Changed |= (bool)DeleteTriviallyDeadInstructions(DeadInsts);
}
}