From: Nadav Rotem Date: Tue, 15 Nov 2011 22:54:21 +0000 (+0000) Subject: Fix MSVC warnings by adding a cast. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=de631128d69dc95f9f6b0c225a52fc08593be59f;p=oota-llvm.git Fix MSVC warnings by adding a cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144721 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 3e122c2a866..4ae51d52f94 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -3827,8 +3827,8 @@ LSRInstance::LSRInstance(const TargetLowering *tli, Loop *l, Pass *P) // Remove any extra phis created by processing inner loops. SmallVector 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 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); } }