From: Cuong Manh Le Date: Fri, 27 Nov 2020 04:00:29 +0000 (+0700) Subject: cmd/compile: mark OpSB, OpSP as poor statement Op X-Git-Tag: go1.17beta1~1446 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=975ba6e2b2;p=gostls13.git 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 --- 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