library: hash, hash/crc64

This commit is contained in:
xushiwei
2024-07-30 18:26:33 +08:00
parent bdca09007d
commit aae7af2194
3 changed files with 14 additions and 1 deletions

View File

@@ -562,7 +562,7 @@ func (b Builder) BinOp(op token.Token, x, y Expr) Expr {
return Expr{llvm.CreateICmp(b.impl, pred, x.impl, y.impl), tret}
}
case vkArray:
typ := x.raw.Type.(*types.Array)
typ := x.raw.Type.Underlying().(*types.Array)
elem := b.Prog.Elem(x.Type)
ret := prog.BoolVal(true)
for i, n := 0, int(typ.Len()); i < n; i++ {