Commit 24513d33 authored by Matthew Dempsky's avatar Matthew Dempsky

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 <mdempsky@google.com>
Reviewed-by: default avatarKeith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 2e118812
...@@ -159,9 +159,7 @@ func yyerror(format string, args ...interface{}) { ...@@ -159,9 +159,7 @@ func yyerror(format string, args ...interface{}) {
} }
func Warn(fmt_ string, args ...interface{}) { func Warn(fmt_ string, args ...interface{}) {
adderr(lineno, fmt_, args...) Warnl(lineno, fmt_, args...)
hcrash()
} }
func Warnl(line src.XPos, fmt_ string, args ...interface{}) { func Warnl(line src.XPos, fmt_ string, args ...interface{}) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment