aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-10 22:59:23 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-10 22:59:23 +0100
commitba5050ac7c2eb116b8989b7d387e67eb79eec62a (patch)
treed36d5cc1c9c6e31c88b27109792f21ca21e8a23f /src/check_decl.cpp
parentd936ca1ea003f82e0fda330cbad1f5bcf4387df2 (diff)
Compiler Internal Changes: TypeRecord_Union -> Type_Union
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index ea457fcf3..1ce518318 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -53,11 +53,6 @@ Type *check_init_variable(Checker *c, Entity *e, Operand *operand, String contex
if (is_type_bit_field_value(t)) {
t = default_bit_field_value_type(t);
}
- if (is_type_variant(t)) {
- Type *st = base_type(t);
- GB_ASSERT(st->Record.variant_parent != nullptr);
- t = st->Record.variant_parent;
- }
GB_ASSERT(is_type_typed(t));
e->type = t;
}