Commit e66ad5a
committed
test: Fix test/IRGen/stdlib/Mutex.swift for 32-bit platforms
The test was failing on 32-bit platforms because the offset of the
layout of struct metadata depends on the pointer size.
| Field | Type | Offset (32-bit) | Offset (64-bit) |
|-------------------------|------|-----------------|-----------------|
| Layout String Pointer | ptr | 4 * (-2) | 4 * (-4) |
| VWT | ptr | 4 * (-1) | 4 * (-2) |
| Metadata Flags | ptr | 4 * 0 | 4 * 0 |
| Nominal Type Descriptor | ptr | 4 * 1 | 4 * 2 |
| Generic Requirement | ptr | 4 * 2 | 4 * 4 |
| Field Offset for handle | i32 | 4 * 3 | 4 * 6 |
| Field Offset for value | i32 | 4 * 4 | 4 * 7 |1 parent 37927fd commit e66ad5a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments