forked from OSchip/llvm-project
parent
dc35bd79ca
commit
7e74b17ad2
|
@ -2212,6 +2212,7 @@ APInt::tcExtract(integerPart *dst, unsigned int dstCount, const integerPart *src
|
|||
dst[dstParts - 1] |= ((src[firstSrcPart + dstParts] & mask)
|
||||
<< n % integerPartWidth);
|
||||
} else if (n > srcBits) {
|
||||
if (srcBits % integerPartWidth)
|
||||
dst[dstParts - 1] &= lowBitMask (srcBits % integerPartWidth);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue