aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/include-mapping/cppreference_parser.py
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-11-04 11:13:50 +0100
committerNikita Popov <npopov@redhat.com>2024-11-04 11:17:24 +0100
commit8851ea64a5d01fbf406383f13fcba347e730bc2d (patch)
tree967dbee9df262267795e4d4c6ae722e6b3311f61 /clang/tools/include-mapping/cppreference_parser.py
parentdaa9af179f5967e90cd45cec35ead793a4166679 (diff)
downloadllvm-8851ea64a5d01fbf406383f13fcba347e730bc2d.zip
llvm-8851ea64a5d01fbf406383f13fcba347e730bc2d.tar.gz
llvm-8851ea64a5d01fbf406383f13fcba347e730bc2d.tar.bz2
[ConstantHoist] Fix APInt ctor assertion
The result here may require truncation. Fix this by removing the calculateOffsetDiff() helper entirely. As far as I can tell, this code does not actually have to deal with different bitwidths. findBaseConstants() will produce ranges of constants with equal types, which is what maximizeConstantsInRange() will then work on. Fixes assertion reported at: https://github.com/llvm/llvm-project/pull/114539#issuecomment-2453008679
Diffstat (limited to 'clang/tools/include-mapping/cppreference_parser.py')
0 files changed, 0 insertions, 0 deletions