Commit 270e2152 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder Committed by David Chase

[dev.ssa] cmd/compile: fix dev.ssa build

Broken by CL 13472.

Change-Id: Ib65331b291c8fab4238ca91e085779bb954d70e8
Reviewed-on: https://go-review.googlesource.com/13638Reviewed-by: default avatarDavid Chase <drchase@google.com>
parent d4cc51d4
......@@ -229,6 +229,10 @@ func (h *LineHist) LineString(lineno int) string {
text := fmt.Sprintf("%s:%d", filename, stk.fileLineAt(lineno))
if stk.Directive && stk.Parent != nil {
stk = stk.Parent
filename = stk.File
if h.PrintFilenameOnly {
filename = filepath.Base(filename)
}
text += fmt.Sprintf("[%s:%d]", filename, stk.fileLineAt(lineno))
}
const showFullStack = false // was used by old C compilers
......
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