diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-03-25 19:02:21 +0000 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2024-03-26 13:48:06 +0000 |
| commit | c6f3e9d79cf849623e6c4f25e02e17cdfab07b7c (patch) | |
| tree | 0efc0142dd23a67509015113b9e1a3aaa2d6c15a /src/arch/x86_64/CodeGen.zig | |
| parent | 341857e5cd4fd4453cf9c7d1a6679feb66710d84 (diff) | |
| download | zig-c6f3e9d79cf849623e6c4f25e02e17cdfab07b7c.tar.gz zig-c6f3e9d79cf849623e6c4f25e02e17cdfab07b7c.zip | |
Zcu.Decl: remove `ty` field
`Decl` can no longer store un-interned values, so this field is now
unnecessary. The type can instead be fetched with the new `typeOf`
helper method, which just gets the type of the Decl's `Value`.
Diffstat (limited to 'src/arch/x86_64/CodeGen.zig')
| -rw-r--r-- | src/arch/x86_64/CodeGen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig index 7db294a37b..273358a6d2 100644 --- a/src/arch/x86_64/CodeGen.zig +++ b/src/arch/x86_64/CodeGen.zig @@ -808,7 +808,7 @@ pub fn generate( const func = zcu.funcInfo(func_index); const fn_owner_decl = zcu.declPtr(func.owner_decl); assert(fn_owner_decl.has_tv); - const fn_type = fn_owner_decl.ty; + const fn_type = fn_owner_decl.typeOf(zcu); const namespace = zcu.namespacePtr(fn_owner_decl.src_namespace); const mod = namespace.file_scope.mod; |
