aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
diff options
context:
space:
mode:
authorMariya Podchishchaeva <mariya.podchishchaeva@intel.com>2025-01-03 11:17:16 +0100
committerGitHub <noreply@github.com>2025-01-03 11:17:16 +0100
commitcdad18319425a7bf93cc25b276a7961fe5b1168b (patch)
treef56efd504b8604ad323349c3dc2fb01e3145bfd7 /llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
parentad192f9f20ad48188b80855c085a0ad7266e0056 (diff)
downloadllvm-cdad18319425a7bf93cc25b276a7961fe5b1168b.zip
llvm-cdad18319425a7bf93cc25b276a7961fe5b1168b.tar.gz
llvm-cdad18319425a7bf93cc25b276a7961fe5b1168b.tar.bz2
[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.
Diffstat (limited to 'llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp')
0 files changed, 0 insertions, 0 deletions