diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-27 22:18:51 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-27 22:18:51 +0000 |
commit | b060a46b0de75d6ab711b60d123ab42a9a6d7b3c (patch) | |
tree | e9d3ab31f9c4dc3c5a78d37c0c68679726d45508 /lib/Transforms/InstCombine/InstCombineCompares.cpp | |
parent | 5972df2696354b328b519bedc07d1c253648cf0e (diff) | |
download | external_llvm-b060a46b0de75d6ab711b60d123ab42a9a6d7b3c.zip external_llvm-b060a46b0de75d6ab711b60d123ab42a9a6d7b3c.tar.gz external_llvm-b060a46b0de75d6ab711b60d123ab42a9a6d7b3c.tar.bz2 |
Use type helper functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCompares.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineCompares.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index 2c292ce..402f8c3 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -1782,8 +1782,7 @@ Instruction *InstCombiner::visitICmpInstWithCastAndCast(ICmpInst &ICI) { // Turn icmp (ptrtoint x), (ptrtoint/c) into a compare of the input if the // integer type is the same size as the pointer type. if (TD && LHSCI->getOpcode() == Instruction::PtrToInt && - TD->getPointerSizeInBits() == - cast<IntegerType>(DestTy)->getBitWidth()) { + TD->getPointerSizeInBits() == DestTy->getIntegerBitWidth()) { Value *RHSOp = 0; if (Constant *RHSC = dyn_cast<Constant>(ICI.getOperand(1))) { RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy); |