1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:34:40 -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. // Some architectures have bonus rules files that others don't share. That's fine.
return return
} }
defer text.Close()
// oprules contains a list of rules for each block and opcode // oprules contains a list of rules for each block and opcode
blockrules := map[string][]Rule{} blockrules := map[string][]Rule{}
oprules := map[string][]Rule{} oprules := map[string][]Rule{}