Reduced the number of values in the IR
All checks were successful
/ test (push) Successful in 17s

This commit is contained in:
Eduard Urbach 2025-07-05 00:56:36 +02:00
parent 59363e2ed3
commit 7d2eb95c83
Signed by: akyoto
GPG key ID: 49226B848C78F6C8

View file

@ -28,12 +28,12 @@ func (f *Function) Evaluate(expr *expression.Expression) (ssa.Value, error) {
f.Dependencies.Add(function) f.Dependencies.Add(function)
v := f.Append(&ssa.Function{ v := &ssa.Function{
UniqueName: function.UniqueName, UniqueName: function.UniqueName,
Typ: function.Type, Typ: function.Type,
IsExtern: function.IsExtern(), IsExtern: function.IsExtern(),
Source: ssa.Source(expr.Source), Source: ssa.Source(expr.Source),
}) }
return v, nil return v, nil
} }
@ -204,12 +204,12 @@ func (f *Function) Evaluate(expr *expression.Expression) (ssa.Value, error) {
f.Dependencies.Add(function) f.Dependencies.Add(function)
} }
v := f.Append(&ssa.Function{ v := &ssa.Function{
UniqueName: function.UniqueName, UniqueName: function.UniqueName,
Typ: function.Type, Typ: function.Type,
IsExtern: function.IsExtern(), IsExtern: function.IsExtern(),
Source: ssa.Source(expr.Source), Source: ssa.Source(expr.Source),
}) }
return v, nil return v, nil
} }