From 9aa4365b9d5bc9f3ab8be290f455c394e50787ca Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Fri, 22 Mar 2024 11:20:58 +0800 Subject: [PATCH] cmd/internal/ssa: close input rule files Signed-off-by: guoguangwu --- src/cmd/compile/internal/ssa/_gen/rulegen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/ssa/_gen/rulegen.go b/src/cmd/compile/internal/ssa/_gen/rulegen.go index 072df298f37..d6f3852b430 100644 --- a/src/cmd/compile/internal/ssa/_gen/rulegen.go +++ b/src/cmd/compile/internal/ssa/_gen/rulegen.go @@ -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{}