diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2023-08-07 14:51:44 -0700 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2023-08-07 14:57:25 -0700 |
commit | f6267d3b98c11b50bf24946f21c6646d2d3f6fa8 (patch) | |
tree | d7fca48fbc2957d8262b03e60bec434c3692432c /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 1e15d7911322c63fdb3ecdfe8fe081db190cd375 (diff) | |
download | llvm-f6267d3b98c11b50bf24946f21c6646d2d3f6fa8.zip llvm-f6267d3b98c11b50bf24946f21c6646d2d3f6fa8.tar.gz llvm-f6267d3b98c11b50bf24946f21c6646d2d3f6fa8.tar.bz2 |
[clang][CGExprConstant] handle implicit widening/narrowing Int-to-Int casts
Consider the following statements:
long x = 1;
short y = 1;
With the following AST:
|-VarDecl 0x55d289973730 <x.c:1:1, col:10> col:6 x 'long' cinit
| `-ImplicitCastExpr 0x55d289973800 <col:10> 'long' <IntegralCast>
| `-IntegerLiteral 0x55d2899737e0 <col:10> 'int' 1
`-VarDecl 0x55d289973830 <line:2:1, col:11> col:7 y 'short' cinit
`-ImplicitCastExpr 0x55d2899738b8 <col:11> 'short' <IntegralCast>
`-IntegerLiteral 0x55d289973898 <col:11> 'int' 1
Sign or Zero extend or truncate based on the source signedness and
destination width.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D156466
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions