Commit e2cbbd0
committed
Sema: perform codegen for anon decl created by
This fixes a bug where, at least with the LLVM backend, `@extern` calls
which had the same name as a normal `extern` in the same Zcu would
result in the `@extern` incorrectly suffixing the identifier `.2`.
Usually, the LLVM backend has a system to change the generated globals
to "collapse" them all together, but it only works if `updateDecl` is
called!@extern
1 parent 9cf28d1 commit e2cbbd0
2 files changed
+43
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25989 | 25989 | | |
25990 | 25990 | | |
25991 | 25991 | | |
25992 | | - | |
25993 | | - | |
25994 | 25992 | | |
25995 | 25993 | | |
25996 | 25994 | | |
25997 | | - | |
25998 | | - | |
25999 | | - | |
26000 | | - | |
26001 | | - | |
26002 | | - | |
26003 | | - | |
26004 | | - | |
26005 | | - | |
26006 | | - | |
26007 | | - | |
26008 | | - | |
26009 | | - | |
26010 | | - | |
26011 | | - | |
26012 | | - | |
26013 | | - | |
26014 | | - | |
26015 | | - | |
26016 | | - | |
26017 | | - | |
26018 | | - | |
26019 | | - | |
26020 | | - | |
26021 | | - | |
26022 | | - | |
| 25995 | + | |
| 25996 | + | |
| 25997 | + | |
| 25998 | + | |
| 25999 | + | |
| 26000 | + | |
| 26001 | + | |
| 26002 | + | |
| 26003 | + | |
| 26004 | + | |
| 26005 | + | |
| 26006 | + | |
| 26007 | + | |
| 26008 | + | |
| 26009 | + | |
| 26010 | + | |
| 26011 | + | |
| 26012 | + | |
| 26013 | + | |
| 26014 | + | |
| 26015 | + | |
| 26016 | + | |
26023 | 26017 | | |
26024 | | - | |
26025 | | - | |
26026 | | - | |
| 26018 | + | |
| 26019 | + | |
| 26020 | + | |
26027 | 26021 | | |
26028 | 26022 | | |
26029 | 26023 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments