Binary and decimal values were reconginzed by strtoll, which returns
error when the msb is 1, and the error was ignored, resulting to wrong
results.
This patch fixes the issue.
Paths
| Differential D157079
[TableGen] Fix wrong lex result on 64-bit integer boundaries ClosedPublic Authored by zsrkmyn on Aug 4 2023, 2:13 AM.
Details Summary Binary and decimal values were reconginzed by strtoll, which returns This patch fixes the issue.
Diff Detail
Event TimelineComment Actions LGTM.
This revision is now accepted and ready to land.Aug 14 2023, 12:48 PM
This revision was landed with ongoing or failed builds.Aug 20 2023, 9:46 PM Closed by commit rGcd7280b6e6c4: [TableGen] Fix wrong lex result on 64-bit integer boundaries (authored by zsrkmyn, committed by MaskRay). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 551895 llvm/lib/TableGen/TGLexer.cpp
llvm/test/TableGen/64-bit-int.td
|