Commit 9c7da2b
committed
[BOLT] Gadget scanner: do not crash on debug-printing CFI instructions
Some instruction-printing code used under LLVM_DEBUG does not handle CFI
instructions well. While CFI instructions seem to be harmless for the
correctness of the analysis results, they do not convey any useful
information to the analysis either, so skip them early.1 parent a1df727 commit 9c7da2b
File tree
2 files changed
+48
-0
lines changed- bolt
- lib/Passes
- test/binary-analysis/AArch64
2 files changed
+48
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
433 | 436 | | |
434 | 437 | | |
435 | 438 | | |
| |||
704 | 707 | | |
705 | 708 | | |
706 | 709 | | |
| 710 | + | |
| 711 | + | |
707 | 712 | | |
708 | 713 | | |
709 | 714 | | |
| |||
1010 | 1015 | | |
1011 | 1016 | | |
1012 | 1017 | | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
1013 | 1021 | | |
1014 | 1022 | | |
1015 | 1023 | | |
| |||
1177 | 1185 | | |
1178 | 1186 | | |
1179 | 1187 | | |
| 1188 | + | |
| 1189 | + | |
1180 | 1190 | | |
1181 | 1191 | | |
1182 | 1192 | | |
| |||
1366 | 1376 | | |
1367 | 1377 | | |
1368 | 1378 | | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
1369 | 1382 | | |
1370 | 1383 | | |
1371 | 1384 | | |
| |||
1429 | 1442 | | |
1430 | 1443 | | |
1431 | 1444 | | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
1432 | 1448 | | |
1433 | 1449 | | |
1434 | 1450 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
332 | 364 | | |
333 | 365 | | |
334 | 366 | | |
| |||
0 commit comments