From 1bcfdc777ad38bbb4faec8e1db2eaa92873f4e10 Mon Sep 17 00:00:00 2001 From: David Chase Date: Fri, 4 Nov 2022 11:23:12 -0400 Subject: cmd/compile: change the multiple (gossa)hash separator from ; to / Semicolon has bad copy-paste ergonomics; it requires quoting. Slash is okay, and won't be a separator ever in debug strings because it is already used in e.g. ssa/phase/debug=etc. Change-Id: I493360e9282666eea1a342971a77df2ebd6c92ad Reviewed-on: https://go-review.googlesource.com/c/go/+/447975 Reviewed-by: Keith Randall Run-TryBot: David Chase Reviewed-by: Keith Randall TryBot-Result: Gopher Robot --- src/cmd/compile/internal/base/hashdebug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/compile/internal/base/hashdebug.go') diff --git a/src/cmd/compile/internal/base/hashdebug.go b/src/cmd/compile/internal/base/hashdebug.go index c93d042f71..609f80393e 100644 --- a/src/cmd/compile/internal/base/hashdebug.go +++ b/src/cmd/compile/internal/base/hashdebug.go @@ -140,7 +140,7 @@ func NewHashDebug(ev, s string, file writeSyncer) *HashDebug { hd.no = true return hd } - ss := strings.Split(s, ";") + ss := strings.Split(s, "/") hd.matches = append(hd.matches, toHashAndMask(ss[0], ev)) // hash searches may use additional EVs with 0, 1, 2, ... suffixes. for i := 1; i < len(ss); i++ { -- cgit v1.3