mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 06:30:39 +00:00
Don't attempt to mask no bits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42909 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ddde0a151
commit
1e8390d8d6
@ -2212,7 +2212,8 @@ APInt::tcExtract(integerPart *dst, unsigned int dstCount, const integerPart *src
|
||||
dst[dstParts - 1] |= ((src[firstSrcPart + dstParts] & mask)
|
||||
<< n % integerPartWidth);
|
||||
} else if (n > srcBits) {
|
||||
dst[dstParts - 1] &= lowBitMask (srcBits % integerPartWidth);
|
||||
if (srcBits % integerPartWidth)
|
||||
dst[dstParts - 1] &= lowBitMask (srcBits % integerPartWidth);
|
||||
}
|
||||
|
||||
/* Clear high parts. */
|
||||
|
Loading…
Reference in New Issue
Block a user