Commit ee333b4b authored by Robert Griesemer's avatar Robert Griesemer

cmd/compile: don't Fatal when printing -m debug information

Some FmtSharp export formatting flag support was removed with
commit b4e9f704. Don't panic if FmtSharp is set, just ignore it.

Fixes #16820.

Change-Id: Ie0c3d3774bd55002f6d2781b1212d070f083e6b2
Reviewed-on: https://go-review.googlesource.com/27556Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
parent 8e24a98a
...@@ -113,8 +113,7 @@ func setfmode(flags *FmtFlag) (fm int, fb bool) { ...@@ -113,8 +113,7 @@ func setfmode(flags *FmtFlag) (fm int, fb bool) {
if *flags&FmtSign != 0 { if *flags&FmtSign != 0 {
fmtmode = FDbg fmtmode = FDbg
} else if *flags&FmtSharp != 0 { } else if *flags&FmtSharp != 0 {
// for textual export format - no longer supported // ignore (textual export format no longer supported)
Fatalf("textual export format request")
} else if *flags&FmtLeft != 0 { } else if *flags&FmtLeft != 0 {
fmtmode = FTypeId fmtmode = FTypeId
} }
......
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