[clang] [lldb] [llvm] [APInt] Fix APInt constructions where value does not fit bitwidth (NFCI) (PR #80309)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 14 07:14:24 PDT 2024
================
@@ -171,7 +171,7 @@ bool HexagonGenExtract::convert(Instruction *In) {
// this value.
if (!LogicalSR && (SR > SL))
return false;
- APInt A = APInt(BW, ~0ULL).lshr(SR).shl(SL);
+ APInt A = APInt(BW, ~0ULL, true).lshr(SR).shl(SL);
----------------
RKSimon wrote:
can we not use APInt::getBitsSet here?
https://github.com/llvm/llvm-project/pull/80309
More information about the cfe-commits
mailing list