Air: remove constant tag
Some uses have been moved to their own tag, the rest use interned. Also, finish porting comptime mutation to be more InternPool aware.
This commit is contained in:
committed by
Andrew Kelley
parent
72e4ea3821
commit
70cc68e999
@@ -764,14 +764,7 @@ pub const Decl = struct {
|
||||
|
||||
pub fn typedValue(decl: Decl) error{AnalysisFail}!TypedValue {
|
||||
if (!decl.has_tv) return error.AnalysisFail;
|
||||
return TypedValue{
|
||||
.ty = decl.ty,
|
||||
.val = decl.val,
|
||||
};
|
||||
}
|
||||
|
||||
pub fn value(decl: *Decl) error{AnalysisFail}!Value {
|
||||
return (try decl.typedValue()).val;
|
||||
return TypedValue{ .ty = decl.ty, .val = decl.val };
|
||||
}
|
||||
|
||||
pub fn isFunction(decl: Decl, mod: *const Module) !bool {
|
||||
|
||||
Reference in New Issue
Block a user