1
0
mirror of https://github.com/golang/go synced 2024-11-21 11:34:44 -07:00

cmd/internal/ssa: close input rule files

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
guoguangwu 2024-03-22 11:20:58 +08:00
parent 4f0408a3a2
commit 9aa4365b9d

View File

@ -102,7 +102,7 @@ func genRulesSuffix(arch arch, suff string) {
// Some architectures have bonus rules files that others don't share. That's fine.
return
}
defer text.Close()
// oprules contains a list of rules for each block and opcode
blockrules := map[string][]Rule{}
oprules := map[string][]Rule{}