[PATCH] D43363: [APInt] Fix extractBits to correctly handle Result.isSingleWord() case.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 15 18:01:31 PST 2018
craig.topper added inline comments.
================
Comment at: llvm/trunk/lib/Support/APInt.cpp:436
(loWord + word + 1) < NumSrcWords ? U.pVal[loWord + word + 1] : 0;
- Result.U.pVal[word] = (w0 >> loBit) | (w1 << (APINT_BITS_PER_WORD - loBit));
+ DestPtr[word] = (w0 >> loBit) | (w1 << (APINT_BITS_PER_WORD - loBit));
}
----------------
Alternatively this could be
```
getRawData()[word] =....
but I don't care much.
Repository:
rL LLVM
https://reviews.llvm.org/D43363
More information about the llvm-commits
mailing list