diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:26:25 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:26:25 +0000 |
commit | 1bfd121321fbe487e3fd343804b77412d3f33fe8 (patch) | |
tree | 9b1bb483cccafe0349272ce86ae2aca892edcc33 /llvm/lib/Transforms/Scalar/SCCP.cpp | |
parent | 852e2149939e2d13685647dc64a1d2b2c1bf9494 (diff) | |
download | bcm5719-llvm-1bfd121321fbe487e3fd343804b77412d3f33fe8.tar.gz bcm5719-llvm-1bfd121321fbe487e3fd343804b77412d3f33fe8.zip |
Make Transforms to be 4.3 warnings-clean
llvm-svn: 47371
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 07e70099769..561cdb1fbb4 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -1608,8 +1608,8 @@ bool IPSCCP::runOnModule(Module &M) { Instruction *Inst = BI++; if (Inst->getType() != Type::VoidTy) { LatticeVal &IV = Values[Inst]; - if (IV.isConstant() || IV.isUndefined() && - !isa<TerminatorInst>(Inst)) { + if (IV.isConstant() || + (IV.isUndefined() && !isa<TerminatorInst>(Inst))) { Constant *Const = IV.isConstant() ? IV.getConstant() : UndefValue::get(Inst->getType()); DOUT << " Constant: " << *Const << " = " << *Inst; |