Commit 268ba85
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 7181a6b commit 268ba85
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 | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
434 | 437 | | |
435 | 438 | | |
436 | 439 | | |
| |||
674 | 677 | | |
675 | 678 | | |
676 | 679 | | |
| 680 | + | |
| 681 | + | |
677 | 682 | | |
678 | 683 | | |
679 | 684 | | |
| |||
959 | 964 | | |
960 | 965 | | |
961 | 966 | | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
962 | 970 | | |
963 | 971 | | |
964 | 972 | | |
| |||
1135 | 1143 | | |
1136 | 1144 | | |
1137 | 1145 | | |
| 1146 | + | |
| 1147 | + | |
1138 | 1148 | | |
1139 | 1149 | | |
1140 | 1150 | | |
| |||
1333 | 1343 | | |
1334 | 1344 | | |
1335 | 1345 | | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
1336 | 1349 | | |
1337 | 1350 | | |
1338 | 1351 | | |
| |||
1396 | 1409 | | |
1397 | 1410 | | |
1398 | 1411 | | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
1399 | 1415 | | |
1400 | 1416 | | |
1401 | 1417 | | |
| |||
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