mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-11 07:18:44 +00:00
[APInt] Use getWord to shorten some code. NFC
llvm-svn: 303236
This commit is contained in:
parent
b3a505940b
commit
9bb8a6b59f
@ -1067,9 +1067,7 @@ public:
|
||||
/// \returns the bit value at bitPosition
|
||||
bool operator[](unsigned bitPosition) const {
|
||||
assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
|
||||
return (maskBit(bitPosition) &
|
||||
(isSingleWord() ? U.VAL : U.pVal[whichWord(bitPosition)])) !=
|
||||
0;
|
||||
return (maskBit(bitPosition) & getWord(bitPosition)) != 0;
|
||||
}
|
||||
|
||||
/// @}
|
||||
|
Loading…
x
Reference in New Issue
Block a user