diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go index 4f63502e85c..6c87d7e2e45 100644 --- a/src/runtime/traceback.go +++ b/src/runtime/traceback.go @@ -234,7 +234,7 @@ func gentraceback(pc0 uintptr, sp0 uintptr, lr0 uintptr, gp *g, skip int, pcbuf // If framepointer_enabled and there's a frame, then // there's a saved bp here. - if GOARCH == "amd64" && frame.varp > frame.sp && framepointer_enabled { + if framepointer_enabled && GOARCH == "amd64" && frame.varp > frame.sp { frame.varp -= regSize }