You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ComputeLHSTy and ComputeResultTy parts tell me that when performing s1 <<= s2, s1 is implicitly converted to int before the shift
and the result is an int, so it should be re-converted to short before updating s1.
It would be nice to be able to extract this information from clangml'AST as well (at least when option 'Clang.Ast.Options.ignore_implicit_cast' is false).
The text was updated successfully, but these errors were encountered:
If I dump Clang's AST for the following program
(using
clang -Xclang -ast-dump -fsyntax-only compound.c
)I can see the following information:
The
ComputeLHSTy
andComputeResultTy
parts tell me that when performings1 <<= s2
, s1 is implicitly converted toint
before the shiftand the result is an
int
, so it should be re-converted toshort
before updatings1
.It would be nice to be able to extract this information from clangml'AST as well (at least when option 'Clang.Ast.Options.ignore_implicit_cast' is false).
The text was updated successfully, but these errors were encountered: