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 | 542619e6d56d97e40b22b0876f6ca57f61112169 (patch) | |
tree | 79db7a82031449710a7cdb8fa0dbe3fe356bea01 /llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp | |
parent | 74a0ba15d335ee53eccdb091a8d905c0cc2d3055 (diff) | |
download | bcm5719-llvm-542619e6d56d97e40b22b0876f6ca57f61112169.tar.gz bcm5719-llvm-542619e6d56d97e40b22b0876f6ca57f61112169.zip |
Move more functionality over to LLVMContext.
llvm-svn: 75497
Diffstat (limited to 'llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp b/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp index 24ac7bf30b7..4116c66dbaf 100644 --- a/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/llvm/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; |