diff options
author | Sergei Barannikov <barannikov88@gmail.com> | 2023-07-08 22:42:36 +0300 |
---|---|---|
committer | Sergei Barannikov <barannikov88@gmail.com> | 2023-09-05 19:14:09 +0300 |
commit | 18a628ec4ef72bcc005e2e9d5757445c31c6e2f8 (patch) | |
tree | b73c5abf58e0bd095001b91b7dd4ad65cfd6d0d8 /clang/unittests/Frontend | |
parent | b9f24033f7f2d3485fbabbc56e3b31b5bc90e874 (diff) | |
download | llvm-18a628ec4ef72bcc005e2e9d5757445c31c6e2f8.zip llvm-18a628ec4ef72bcc005e2e9d5757445c31c6e2f8.tar.gz llvm-18a628ec4ef72bcc005e2e9d5757445c31c6e2f8.tar.bz2 |
[AST] Use correct APSInt width when evaluating string literals
The width of the APSInt values should be the width of an element.
getCharByteWidth returns the size of an element in _host_ bytes, which
makes the width N times greater, where N is the ratio between target's
CHAR_BIT and host's CHAR_BIT.
This is NFC for in-tree targets because all of them have CHAR_BIT == 8.
Reviewed By: cor3ntin, aaron.ballman
Differential Revision: https://reviews.llvm.org/D154773
Diffstat (limited to 'clang/unittests/Frontend')
0 files changed, 0 insertions, 0 deletions