diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-13 20:58:05 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-13 20:58:05 +0000 |
commit | 73c6b7127aff4499e4d6a2edb219685aee178ee1 (patch) | |
tree | cabab2668e037a0276156e885bd54d5bd660eabd /lib/Transforms/Scalar/PredicateSimplifier.cpp | |
parent | 69fbc7f477c21ce1d8ae5a4aa8a701e47aa2d163 (diff) |
Move more functionality over to LLVMContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/PredicateSimplifier.cpp')
-rw-r--r-- | lib/Transforms/Scalar/PredicateSimplifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/PredicateSimplifier.cpp b/lib/Transforms/Scalar/PredicateSimplifier.cpp index 24ac7bf30b..4116c66dba 100644 --- a/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/lib/Transforms/Scalar/PredicateSimplifier.cpp @@ -1754,7 +1754,7 @@ namespace { switch (BO->getOpcode()) { case Instruction::And: { // "and i32 %a, %b" EQ -1 then %a EQ -1 and %b EQ -1 - ConstantInt *CI = ConstantInt::getAllOnesValue(Ty); + ConstantInt *CI = cast<ConstantInt>(Context->getAllOnesValue(Ty)); if (Canonical == CI) { add(CI, Op0, ICmpInst::ICMP_EQ, NewContext); add(CI, Op1, ICmpInst::ICMP_EQ, NewContext); @@ -1892,7 +1892,7 @@ namespace { Constant *Zero = Context->getNullValue(Ty); Constant *One = ConstantInt::get(Ty, 1); - ConstantInt *AllOnes = ConstantInt::getAllOnesValue(Ty); + ConstantInt *AllOnes = cast<ConstantInt>(Context->getAllOnesValue(Ty)); switch (Opcode) { default: break; |