This repository was archived by the owner on Jun 9, 2026. It is now read-only.
Commit 8f34656
Emit named structs as STRUCT_NAMED instead of OPAQUE.
Named (non-literal) structs were always written with the OPAQUE record code
while still carrying their body operands. LLVM 5/7 require an OPAQUE record to
have no body and reject it with "Invalid record", so any module with a named
struct failed to round-trip. Use STRUCT_NAMED for structs with a body and
reserve OPAQUE for genuinely opaque ones.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit 3694275)1 parent 9f2c2e7 commit 8f34656
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
912 | 915 | | |
913 | 916 | | |
914 | 917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
925 | 925 | | |
926 | 926 | | |
927 | 927 | | |
928 | | - | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
929 | 932 | | |
930 | 933 | | |
931 | 934 | | |
| |||
0 commit comments