Commit 4d47993
[CIR][Bugfix] fixes global array of pointers (#1350)
This PR fixes a case with global vars replacement when an array element
is neither a`GlobalView` nor `ConstArray` but just a null pointer .
Previously we just skip such element.
Basically, the case in question is `static S* global[] = {0,
&another_global}`1 parent 59493c0 commit 4d47993
File tree
2 files changed
+4
-2
lines changed- clang
- lib/CIR/CodeGen
- test/CIR/CodeGen
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
| 888 | + | |
| 889 | + | |
888 | 890 | | |
889 | 891 | | |
890 | 892 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments