compiler: minor cleanups

This commit is contained in:
mlugg
2024-03-26 04:11:05 +00:00
parent 26a94e8481
commit 920f2c7794
2 changed files with 6 additions and 6 deletions

View File

@@ -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 {