From: Matthew Dempsky Date: Tue, 23 Apr 2019 21:06:12 +0000 (-0700) Subject: cmd/compile: don't call hcrash in Warn X-Git-Tag: go1.13beta1~579 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=24513d33b1d6f4b5231baf7c1b896968b35841b6;p=gostls13.git cmd/compile: don't call hcrash in Warn Fixes #31638. Change-Id: I748f64b48b75241a9db31c9f37555379a841677a Reviewed-on: https://go-review.googlesource.com/c/go/+/173443 Run-TryBot: Matthew Dempsky Reviewed-by: Keith Randall TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/compile/internal/gc/subr.go b/src/cmd/compile/internal/gc/subr.go index fc60eeb043..f3ec21c7cb 100644 --- a/src/cmd/compile/internal/gc/subr.go +++ b/src/cmd/compile/internal/gc/subr.go @@ -159,9 +159,7 @@ func yyerror(format string, args ...interface{}) { } func Warn(fmt_ string, args ...interface{}) { - adderr(lineno, fmt_, args...) - - hcrash() + Warnl(lineno, fmt_, args...) } func Warnl(line src.XPos, fmt_ string, args ...interface{}) {