address some lint

This commit is contained in:
Michael McLoughlin
2018-12-05 00:27:42 -08:00
parent 022cbb7792
commit fa18d7229f
5 changed files with 17 additions and 20 deletions

View File

@@ -53,7 +53,9 @@ func (a *Allocator) AddInterference(x, y reg.Register) {
func (a *Allocator) Allocate() (reg.Allocation, error) {
for a.remaining() > 0 {
a.update()
if err := a.update(); err != nil {
return nil, err
}
v := a.mostrestricted()
if err := a.alloc(v); err != nil {