Skip to content

Commit

Permalink
pass: use NOFRAME() helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed Apr 19, 2021
1 parent 462d358 commit af77c25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pass/reg.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package pass
import (
"errors"

"github.com/mmcloughlin/avo/attr"
"github.com/mmcloughlin/avo/gotypes"
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/operand"
Expand Down Expand Up @@ -191,7 +190,7 @@ func EnsureBasePointerCalleeSaved(fn *ir.Function) error {
// bpsize = 0
// }
//
if (fn.Attributes & attr.NOFRAME) != 0 {
if fn.Attributes.NOFRAME() {
return errors.New("NOFRAME function clobbers base pointer register")
}

Expand Down

0 comments on commit af77c25

Please sign in to comment.