[all-commits] [llvm/llvm-project] a5b520: [clang] Be careful when choosing "fast path" for i...
Mariya Podchishchaeva via All-commits
all-commits at lists.llvm.org
Wed Jul 17 01:01:08 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a5b5208ba627da46310db67af0dcbb0a824fab92
https://github.com/llvm/llvm-project/commit/a5b5208ba627da46310db67af0dcbb0a824fab92
Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
Date: 2024-07-17 (Wed, 17 Jul 2024)
Changed paths:
M clang/lib/Sema/SemaInit.cpp
M clang/test/Preprocessor/embed_codegen.cpp
M clang/test/Preprocessor/embed_constexpr.cpp
Log Message:
-----------
[clang] Be careful when choosing "fast path" for initialization with #embed (#99023)
When #embed appears in an initializer list, we may choose a "fast path"
if the target declaration is a char array. We simply initialize it with
string literal that contains embedded data. However we need to be
careful when checking that we actually can use this "fast path" since
char array may be nested in a struct.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list