2 Commits

Author SHA1 Message Date
Mariya Podchishchaeva
cdad183194
[clang] Fix #embed "fast path" (#121479)
When a single #embed directive is used to initialize a char array, the
case is optimized via swap of EmbedExpr to underlying StringLiteral,
resulting in better performance in AST consumers.
While browsing through the code, I realized that
7122b70cfc8e23a069410215c363da76d842bda4
which changed type of EmbedExpr made the "fast path" unreachable. This
patch fixes this unfortunate situation.
2025-01-03 11:17:16 +01:00
Nicolas van Kempen
d84d9559bd
[clang][analyzer] Fix #embed crash (#107764)
Fix #107724.
2024-09-09 13:12:46 +02:00