aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2023-07-26 11:41:39 -0700
committerNick Desaulniers <ndesaulniers@google.com>2023-07-26 12:53:02 -0700
commit2c26397f76d9b8d2a0dc8207eeca5b0d3216f3f0 (patch)
tree4a63236d54d233b120e65bf00f37f1ee6f742ad1 /clang/lib/CodeGen/CodeGenFunction.cpp
parent4e1b55a781946303202fdf412acb4f151f0474d0 (diff)
downloadllvm-2c26397f76d9b8d2a0dc8207eeca5b0d3216f3f0.zip
llvm-2c26397f76d9b8d2a0dc8207eeca5b0d3216f3f0.tar.gz
llvm-2c26397f76d9b8d2a0dc8207eeca5b0d3216f3f0.tar.bz2
[clang][ConstExprEmitter] handle NullToPointer ImplicitCastExpr
Consider the following statement: void* foo = ((void *)0); For the sub-AST: | `-ImplicitCastExpr 'const void *' <NullToPointer> | `-CStyleCastExpr 'void *' <NullToPointer> | `-IntegerLiteral 'int' 0 If the subexpression of the cast is itself the NULL constant, then ImplicitCastExpr should emit the NULL pointer constant. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D156175
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions