diff options
| author | Derek Parker <parkerderek86@gmail.com> | 2025-07-14 22:28:59 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-07-24 10:17:56 -0700 |
| commit | c641900f72a595ff2e826367b64e3e418c265409 (patch) | |
| tree | acb3e7c14a5d0dccd8458ec69ad7e6c6b34af164 /src/cmd/compile | |
| parent | d71d8aeafd7aa5c2ff3da6a782acdd573a0409af (diff) | |
| download | go-c641900f72a595ff2e826367b64e3e418c265409.tar.xz | |
cmd/compile: prefer base.Fatalf to panic in dwarfgen
Updates a few spots which call `panic` to instead call `base.Fatalf`.
Change-Id: I30b73c7994caa647245b0e253f20e0b88185e644
GitHub-Last-Rev: b3839bbe424294f92a1f9448e5e0ac074e722e4d
GitHub-Pull-Request: golang/go#74616
Reviewed-on: https://go-review.googlesource.com/c/go/+/688035
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/compile')
| -rw-r--r-- | src/cmd/compile/internal/dwarfgen/dwarf.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/dwarfgen/dwarf.go b/src/cmd/compile/internal/dwarfgen/dwarf.go index 7d75c0c5ce..6ab39d2aaa 100644 --- a/src/cmd/compile/internal/dwarfgen/dwarf.go +++ b/src/cmd/compile/internal/dwarfgen/dwarf.go @@ -203,7 +203,7 @@ func createDwarfVars(fnsym *obj.LSym, complexOK bool, fn *ir.Func, apDecls []*ir continue } if n.Class != ir.PPARAMOUT || !n.IsOutputParamInRegisters() { - panic("invalid ir.Name on debugInfo.RegOutputParams list") + base.Fatalf("invalid ir.Name on debugInfo.RegOutputParams list") } dcl = append(dcl, n) } @@ -583,7 +583,7 @@ func createHeapDerefLocationList(n *ir.Name, entryID ssa.ID) []byte { // in the DWARF info. func RecordFlags(flags ...string) { if base.Ctxt.Pkgpath == "" { - panic("missing pkgpath") + base.Fatalf("missing pkgpath") } type BoolFlag interface { |
