diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 12:07:57 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 12:07:57 +0000 |
commit | 18991d78fa2f4757853d7aab2bd4b88610f4dfcc (patch) | |
tree | 6bd503fc5dff7298f69a46201a11d2ff170aa4d8 /llvm/lib/Transforms | |
parent | ea333124f18608969feb2b0f69aae75f2072613e (diff) | |
download | bcm5719-llvm-18991d78fa2f4757853d7aab2bd4b88610f4dfcc.tar.gz bcm5719-llvm-18991d78fa2f4757853d7aab2bd4b88610f4dfcc.zip |
Fix newly-introduced 4.3 warnings
llvm-svn: 47375
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Utils/LCSSA.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 12008956153..d6d87813542 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -5481,8 +5481,8 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI, // Extending a relational comparison when we're checking the sign // bit would not work. if (Cast->hasOneUse() && - (ICI.isEquality() || AndCST->getValue().isNonNegative() && - RHSV.isNonNegative())) { + (ICI.isEquality() || + (AndCST->getValue().isNonNegative() && RHSV.isNonNegative()))) { uint32_t BitWidth = cast<IntegerType>(Cast->getOperand(0)->getType())->getBitWidth(); APInt NewCST = AndCST->getValue(); diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp index 770ce736da5..567b23e6ffe 100644 --- a/llvm/lib/Transforms/Utils/LCSSA.cpp +++ b/llvm/lib/Transforms/Utils/LCSSA.cpp @@ -90,7 +90,7 @@ namespace { std::map<DomTreeNode*, Value*> &Phis); /// inLoop - returns true if the given block is within the current loop - const bool inLoop(BasicBlock* B) { + bool inLoop(BasicBlock* B) { return std::binary_search(LoopBlocks.begin(), LoopBlocks.end(), B); } }; |