-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Linter reports variables used only in assembly as unused.
Consider this very common code used in crypto libraries:
test.go:
import "golang.org/x/sys/cpu"
var hasBoth = cpu.HasBMI2 && cpu.HasADX
test.s
CMPB hasBoth
JE jump_to_optimized_implementation
....
linter will report hasBoth is not used, where it actually is
Metadata
Metadata
Assignees
Labels
No labels