diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-18 19:24:45 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-18 19:24:45 +0100 |
| commit | 59fb7b020a5e0bd2d23daab0f74e9cfa23420afc (patch) | |
| tree | 435bd10ec767d4bdf56bfc3d232c0c9debea18d8 /src/ssa.cpp | |
| parent | 65f079ebc474f9decc7afb222630c04b4da32690 (diff) | |
Merge `raw_union` into `struct` as a memory layout tag `#raw_union`
Diffstat (limited to 'src/ssa.cpp')
| -rw-r--r-- | src/ssa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssa.cpp b/src/ssa.cpp index 03810e354..a1b5c3827 100644 --- a/src/ssa.cpp +++ b/src/ssa.cpp @@ -652,7 +652,7 @@ bool can_ssa_type(Type *t) { return false; case Type_Record: - if (t->Record.kind == TypeRecord_Struct) { + if (!t->Record.is_raw_union) { if (t->Record.field_count > SSA_MAX_STRUCT_FIELD_COUNT) { return false; } |