Commit 3525bc6
committed
[llvm-debuginfo-analyzer] Fix crash with WebAssembly dead code
#136772
Incorrect handling of 'tombstone' value for WebAssembly.
Address reviewes comments:
- Make 'tombstone' a member of 'LVDWARFReader', to eliminate the
extra dependency on the CodeView reader.
- Rename the test case and rework some comments to make it easy
to understand.1 parent 6eca31c commit 3525bc6
File tree
4 files changed
+22
-45
lines changed- llvm
- include/llvm/DebugInfo/LogicalView
- Core
- Readers
- test/tools/llvm-debuginfo-analyzer/WebAssembly
4 files changed
+22
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 159 | | |
163 | 160 | | |
164 | 161 | | |
| |||
285 | 282 | | |
286 | 283 | | |
287 | 284 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | 285 | | |
295 | 286 | | |
296 | 287 | | |
| |||
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 196 | + | |
200 | 197 | | |
201 | 198 | | |
202 | 199 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 200 | + | |
207 | 201 | | |
208 | 202 | | |
209 | 203 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
Lines changed: 11 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 3 | + | |
| 4 | + | |
24 | 5 | | |
25 | 6 | | |
26 | 7 | | |
| |||
29 | 10 | | |
30 | 11 | | |
31 | 12 | | |
32 | | - | |
33 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
34 | 17 | | |
35 | 18 | | |
36 | 19 | | |
| |||
42 | 25 | | |
43 | 26 | | |
44 | 27 | | |
45 | | - | |
46 | | - | |
| 28 | + | |
| 29 | + | |
47 | 30 | | |
48 | 31 | | |
49 | 32 | | |
50 | | - | |
| 33 | + | |
51 | 34 | | |
52 | 35 | | |
53 | 36 | | |
54 | | - | |
| 37 | + | |
55 | 38 | | |
56 | 39 | | |
57 | 40 | | |
58 | 41 | | |
59 | | - | |
| 42 | + | |
60 | 43 | | |
61 | 44 | | |
62 | 45 | | |
| |||
0 commit comments