summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-04-25 10:48:47 +0000
committerTim Northover <tnorthover@apple.com>2014-04-25 10:48:47 +0000
commit5c4d1570ca77e5b85ba4c55c3a9c9346143cb4ac (patch)
tree9a20f4114babb38d6463ef28a99e69f3e920480e /lib
parent8aa927abb5588b777d24e9bc9488d91ca7a6860d (diff)
downloadllvm-5c4d1570ca77e5b85ba4c55c3a9c9346143cb4ac.tar.gz
llvm-5c4d1570ca77e5b85ba4c55c3a9c9346143cb4ac.tar.bz2
llvm-5c4d1570ca77e5b85ba4c55c3a9c9346143cb4ac.tar.xz
ARM64: fix assertion in ISelDAGToDAG
Also an unused variable, so double bonus! This should deal with PR19548. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM64/ARM64ISelDAGToDAG.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Target/ARM64/ARM64ISelDAGToDAG.cpp b/lib/Target/ARM64/ARM64ISelDAGToDAG.cpp
index 986c2ad049..ad1c64526c 100644
--- a/lib/Target/ARM64/ARM64ISelDAGToDAG.cpp
+++ b/lib/Target/ARM64/ARM64ISelDAGToDAG.cpp
@@ -1403,8 +1403,6 @@ static bool isBitfieldDstMask(uint64_t DstMask, APInt BitsToBeInserted,
assert((VT == MVT::i32 || VT == MVT::i64) &&
"i32 or i64 mask type expected!");
unsigned BitWidth = VT.getSizeInBits() - NumberOfIgnoredHighBits;
- APInt SignificantBits =
- ~APInt::getHighBitsSet(BitWidth, NumberOfIgnoredHighBits);
APInt SignificantDstMask = APInt(BitWidth, DstMask);
APInt SignificantBitsToBeInserted = BitsToBeInserted.zextOrTrunc(BitWidth);