Files
clang-p2996/clang/lib/Sema/SemaInit.cpp
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
7122b70cfc
which changed type of EmbedExpr made the "fast path" unreachable. This
patch fixes this unfortunate situation.
2025-01-03 11:17:16 +01:00

402 KiB