diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-10 22:59:23 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-10 22:59:23 +0100 |
| commit | ba5050ac7c2eb116b8989b7d387e67eb79eec62a (patch) | |
| tree | d36d5cc1c9c6e31c88b27109792f21ca21e8a23f /src/ssa.cpp | |
| parent | d936ca1ea003f82e0fda330cbad1f5bcf4387df2 (diff) | |
Compiler Internal Changes: TypeRecord_Union -> Type_Union
Diffstat (limited to 'src/ssa.cpp')
| -rw-r--r-- | src/ssa.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ssa.cpp b/src/ssa.cpp index 2f9588917..248999e39 100644 --- a/src/ssa.cpp +++ b/src/ssa.cpp @@ -648,10 +648,11 @@ bool can_ssa_type(Type *t) { } } return true; + case Type_Union: + return false; + case Type_Record: - if (t->Record.kind == TypeRecord_Union) { - return false; - } else if (t->Record.kind == TypeRecord_Struct) { + if (t->Record.kind == TypeRecord_Struct) { if (t->Record.field_count > SSA_MAX_STRUCT_FIELD_COUNT) { return false; } |