forked from OSchip/llvm-project
parent
21a9683641
commit
5ed61fe6a1
|
@ -483,6 +483,7 @@ APInt APInt::operator-(const APInt& RHS) const {
|
|||
}
|
||||
|
||||
bool APInt::operator[](unsigned bitPosition) const {
|
||||
assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
|
||||
return (maskBit(bitPosition) &
|
||||
(isSingleWord() ? VAL : pVal[whichWord(bitPosition)])) != 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue