Commit b7ff833
committed
decomp: demote same-width wrapper structs on scalar int-extension ops
Ghidra over-propagates a single-field struct (e.g. CRC32) onto INT_ZEXT/
INT_SEXT temps, which hard-fails Sema. Serializer demotes a same-width
record on strictly-scalar ops to a scalar surrogate; emitter also coerces
a non-arithmetic int-extension target to a same-width integer.1 parent aca2162 commit b7ff833
3 files changed
Lines changed: 69 additions & 6 deletions
File tree
- include/patchestry/AST
- lib/patchestry/AST
- scripts/ghidra/util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
305 | 313 | | |
306 | 314 | | |
307 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
487 | 513 | | |
488 | 514 | | |
489 | 515 | | |
| |||
2774 | 2800 | | |
2775 | 2801 | | |
2776 | 2802 | | |
| 2803 | + | |
2777 | 2804 | | |
2778 | 2805 | | |
2779 | 2806 | | |
| |||
2837 | 2864 | | |
2838 | 2865 | | |
2839 | 2866 | | |
| 2867 | + | |
2840 | 2868 | | |
2841 | 2869 | | |
2842 | 2870 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
859 | 886 | | |
860 | 887 | | |
861 | 888 | | |
| |||
1718 | 1745 | | |
1719 | 1746 | | |
1720 | 1747 | | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
1724 | 1751 | | |
1725 | 1752 | | |
1726 | 1753 | | |
| |||
3370 | 3397 | | |
3371 | 3398 | | |
3372 | 3399 | | |
3373 | | - | |
3374 | | - | |
3375 | | - | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
3376 | 3403 | | |
3377 | 3404 | | |
3378 | 3405 | | |
| |||
0 commit comments