]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: don't call hcrash in Warn
authorMatthew Dempsky <mdempsky@google.com>
Tue, 23 Apr 2019 21:06:12 +0000 (14:06 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 23 Apr 2019 22:53:21 +0000 (22:53 +0000)
Fixes #31638.

Change-Id: I748f64b48b75241a9db31c9f37555379a841677a
Reviewed-on: https://go-review.googlesource.com/c/go/+/173443
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/internal/gc/subr.go

index fc60eeb04331f938637c2bdda2ce89b9bde4157e..f3ec21c7cb0f247dcf799449e4832cec4f40637e 100644 (file)
@@ -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{}) {