[all-commits] [llvm/llvm-project] 884772: [Sema] Don't drop weak_import from a declaration i...
Akira Hatanaka via All-commits
all-commits at lists.llvm.org
Wed Jul 17 16:19:43 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 884772fdd6213c1bc16316b1e57fe08d85bdbc2d
https://github.com/llvm/llvm-project/commit/884772fdd6213c1bc16316b1e57fe08d85bdbc2d
Author: Akira Hatanaka <ahatanak at gmail.com>
Date: 2024-07-17 (Wed, 17 Jul 2024)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaDecl.cpp
M clang/test/Sema/attr-weak.c
M clang/test/SemaCXX/attr-weak.cpp
Log Message:
-----------
[Sema] Don't drop weak_import from a declaration if its definition isn't seen (#85886)
I believe this is what the original commit (33e022650adee965c65f9aea086ee74f3fd1bad5) was trying to do.
This fixes a bug where clang removes the attribute from a declaration that follows a declaration directly contained in a linkage-specification.
rdar://61865848
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