| ... | ... | @@ -1361,13 +1361,20 @@ pub const DataSegment = extern struct { |
| 1361 | 1361 | const ip = &zcu.intern_pool; |
| 1362 | 1362 | const ip_index = i.key(wasm).*; |
| 1363 | 1363 | const ty: ZcuType = .fromInterned(ip.typeOf(ip_index)); |
| 1364 | | return ty.abiAlignment(zcu); |
| 1364 | const result = ty.abiAlignment(zcu); |
| 1365 | assert(result != .none); |
| 1366 | return result; |
| 1365 | 1367 | }, |
| 1366 | 1368 | inline .nav_exe, .nav_obj => |i| { |
| 1367 | 1369 | const zcu = wasm.base.comp.zcu.?; |
| 1368 | 1370 | const ip = &zcu.intern_pool; |
| 1369 | 1371 | const nav = ip.getNav(i.key(wasm).*); |
| 1370 | | return nav.status.resolved.alignment; |
| 1372 | const explicit = nav.status.resolved.alignment; |
| 1373 | if (explicit != .none) return explicit; |
| 1374 | const ty: ZcuType = .fromInterned(nav.typeOf(ip)); |
| 1375 | const result = ty.abiAlignment(zcu); |
| 1376 | assert(result != .none); |
| 1377 | return result; |
| 1371 | 1378 | }, |
| 1372 | 1379 | }; |
| 1373 | 1380 | } |