fix: staticcheck and deadcode findings repo-wide, modernize counting loops
This commit is contained in:
@@ -878,11 +878,6 @@ func encodeARM64SBStore(sym *ast.Symbol, rs int, mnem string, relocs *[]Reloc) (
|
||||
|
||||
// ---- operand helpers ----
|
||||
|
||||
// arm64Reg returns the register number of an operand, or -1.
|
||||
func arm64Reg(op *ast.Operand) int {
|
||||
return arm64RegNum(operandRegName(op))
|
||||
}
|
||||
|
||||
// arm64Imm64 returns the full 64-bit immediate value of an operand.
|
||||
func arm64Imm64(op *ast.Operand) int64 {
|
||||
if op.Imm.HasVal {
|
||||
|
||||
Reference in New Issue
Block a user