From 24513d33b1d6f4b5231baf7c1b896968b35841b6 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Tue, 23 Apr 2019 14:06:12 -0700 Subject: [PATCH] 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 --- src/cmd/compile/internal/gc/subr.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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{}) { -- 2.48.1