From 975ba6e2b2547e0c4065a09644686723704283e1 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Fri, 27 Nov 2020 11:00:29 +0700 Subject: [PATCH] cmd/compile: mark OpSB, OpSP as poor statement Op So that would make them last choice for a statement boundary. This is follow up of CL 273506. Change-Id: I0203aa0e0d95d538064c2113143c85c4fbb1e65e Reviewed-on: https://go-review.googlesource.com/c/go/+/273666 TryBot-Result: Go Bot Trust: Cuong Manh Le Run-TryBot: Cuong Manh Le Reviewed-by: Cherry Zhang --- src/cmd/compile/internal/ssa/numberlines.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/ssa/numberlines.go b/src/cmd/compile/internal/ssa/numberlines.go index 2a9c8e4f32..54a158ff87 100644 --- a/src/cmd/compile/internal/ssa/numberlines.go +++ b/src/cmd/compile/internal/ssa/numberlines.go @@ -16,7 +16,7 @@ func isPoorStatementOp(op Op) bool { // so that a debugger-user sees the stop before the panic, and can examine the value. case OpAddr, OpLocalAddr, OpOffPtr, OpStructSelect, OpPhi, OpITab, OpIData, OpIMake, OpStringMake, OpSliceMake, OpStructMake0, OpStructMake1, OpStructMake2, OpStructMake3, OpStructMake4, - OpConstBool, OpConst8, OpConst16, OpConst32, OpConst64, OpConst32F, OpConst64F: + OpConstBool, OpConst8, OpConst16, OpConst32, OpConst64, OpConst32F, OpConst64F, OpSB, OpSP: return true } return false -- 2.50.0