aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-10-13 18:43:43 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-10-13 18:43:43 -0700
commitb0f80ef0d5517b5ce8ba60dfae6dd986346f8d4c (patch)
tree14dbc30206ceed6282ee010685de8da1ede4167d /src/type.zig
parentdf7d6d263e4ad6adb302856235641ae9ceb142b6 (diff)
downloadzig-b0f80ef0d5517b5ce8ba60dfae6dd986346f8d4c.tar.gz
zig-b0f80ef0d5517b5ce8ba60dfae6dd986346f8d4c.zip
stage2: remove use of `builtin.stage2_arch` workaround
The LLVM backend no longer needs this hack! However, the other backends still do. So there are still some traces of this workaround in use for now.
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/type.zig b/src/type.zig
index 72430c9f65..055b32a048 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -1458,7 +1458,7 @@ pub const Type = extern union {
}
},
.union_tagged => {
- const union_obj = self.castTag(.@"union").?.data;
+ const union_obj = self.castTag(.union_tagged).?.data;
if (union_obj.tag_ty.hasCodeGenBits()) {
return true;
}
@@ -1470,7 +1470,6 @@ pub const Type = extern union {
}
},
- // TODO lazy types
.array, .vector => self.elemType().hasCodeGenBits() and self.arrayLen() != 0,
.array_u8 => self.arrayLen() != 0,