aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2023-07-25 15:07:25 -0700
committerNick Desaulniers <ndesaulniers@google.com>2023-07-25 15:27:08 -0700
commitd1199808afa5b46dfb6738f123b869d0e2fa050a (patch)
treee6fc80ab20f4754fd747b246db61dbc990aceeb4 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parente1bdf3219f72181ec54f47da0880c99410e7c93c (diff)
downloadllvm-d1199808afa5b46dfb6738f123b869d0e2fa050a.zip
llvm-d1199808afa5b46dfb6738f123b869d0e2fa050a.tar.gz
llvm-d1199808afa5b46dfb6738f123b869d0e2fa050a.tar.bz2
[clang][ConstExprEmitter] handle ArrayToPointerDecay ImplicitCastExpr of StringLiterals
Consider the following statement: const char* foo = "foo"; For the sub-AST: `-ImplicitCastExpr <col:19> 'const char *' <NoOp> `-ImplicitCastExpr <col:19> 'char *' <ArrayToPointerDecay> `-StringLiteral <col:19> 'char[4]' lvalue "foo" The address of the StringLiteral can be emitted as the Constant. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D156185
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions