Commit f6ee937
[Sema] Don't drop weak_import from a declaration if its definition isn't seen (llvm#85886)
I believe this is what the original commit (33e0226) 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
(cherry picked from commit 884772f)
Conflicts:
clang/test/Sema/attr-weak.c1 parent 4ee0677 commit f6ee937
File tree
4 files changed
+25
-12
lines changed- clang
- include/clang/Basic
- lib/Sema
- test
- SemaCXX
- Sema
4 files changed
+25
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5925 | 5925 | | |
5926 | 5926 | | |
5927 | 5927 | | |
5928 | | - | |
| 5928 | + | |
5929 | 5929 | | |
5930 | 5930 | | |
5931 | 5931 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4587 | 4587 | | |
4588 | 4588 | | |
4589 | 4589 | | |
4590 | | - | |
| 4590 | + | |
4591 | 4591 | | |
4592 | | - | |
4593 | | - | |
4594 | | - | |
4595 | | - | |
4596 | | - | |
4597 | | - | |
4598 | | - | |
4599 | | - | |
| 4592 | + | |
| 4593 | + | |
| 4594 | + | |
| 4595 | + | |
| 4596 | + | |
| 4597 | + | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
4600 | 4602 | | |
4601 | 4603 | | |
4602 | 4604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments