Commit eae7596
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 19f983e commit eae7596
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 | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| |||
703 | 706 | | |
704 | 707 | | |
705 | 708 | | |
| 709 | + | |
| 710 | + | |
706 | 711 | | |
707 | 712 | | |
708 | 713 | | |
| |||
982 | 987 | | |
983 | 988 | | |
984 | 989 | | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
985 | 993 | | |
986 | 994 | | |
987 | 995 | | |
| |||
1151 | 1159 | | |
1152 | 1160 | | |
1153 | 1161 | | |
| 1162 | + | |
| 1163 | + | |
1154 | 1164 | | |
1155 | 1165 | | |
1156 | 1166 | | |
| |||
1341 | 1351 | | |
1342 | 1352 | | |
1343 | 1353 | | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1344 | 1357 | | |
1345 | 1358 | | |
1346 | 1359 | | |
| |||
1404 | 1417 | | |
1405 | 1418 | | |
1406 | 1419 | | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
1407 | 1423 | | |
1408 | 1424 | | |
1409 | 1425 | | |
| |||
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