diff options
author | Duncan Sands <baldrick@free.fr> | 2008-05-27 11:50:51 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-05-27 11:50:51 +0000 |
commit | 43e2a035309f4e353a8bd5547d10125414597e74 (patch) | |
tree | fcf9eed2be7db5aa70cd9cc9b50875cc774c5c2a /lib/Transforms/Scalar/JumpThreading.cpp | |
parent | 3d8710e80acf496657feb092a79d226913742593 (diff) |
Fix some constructs that gcc-4.4 warns about.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r-- | lib/Transforms/Scalar/JumpThreading.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/JumpThreading.cpp b/lib/Transforms/Scalar/JumpThreading.cpp index 407d081b78..4e57f0e74c 100644 --- a/lib/Transforms/Scalar/JumpThreading.cpp +++ b/lib/Transforms/Scalar/JumpThreading.cpp @@ -282,8 +282,8 @@ bool JumpThreading::ProcessBranchOnLogical(Value *V, BasicBlock *BB, // If this is a binary operator tree of the same AND/OR opcode, check the // LHS/RHS. if (BinaryOperator *BO = dyn_cast<BinaryOperator>(V)) - if (isAnd && BO->getOpcode() == Instruction::And || - !isAnd && BO->getOpcode() == Instruction::Or) { + if ((isAnd && BO->getOpcode() == Instruction::And) || + (!isAnd && BO->getOpcode() == Instruction::Or)) { if (ProcessBranchOnLogical(BO->getOperand(0), BB, isAnd)) return true; if (ProcessBranchOnLogical(BO->getOperand(1), BB, isAnd)) |