aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index b3abefb576..419205c30f 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -477,7 +477,7 @@ pub const Decl = struct {
pub fn typeOf(decl: Decl, zcu: *const Zcu) Type {
assert(decl.has_tv);
- return Type.fromInterned(zcu.intern_pool.typeOf(decl.val.toIntern()));
+ return decl.val.typeOf(zcu);
}
pub fn typedValue(decl: Decl, zcu: *const Zcu) error{AnalysisFail}!TypedValue {