From 83ee6c1d167a361b510e9bb449e4183e2fb583b1 Mon Sep 17 00:00:00 2001 From: Xiaodong Liu Date: Wed, 24 Nov 2021 17:53:07 +0800 Subject: [PATCH] cmd/compile/internal/ssa: increase the bit width of BlockKind type After the BlockKind of loong64 is introduced, it exceeds the maximum range that int8 can represent. Contributors to the loong64 port are: Weining Lu Lei Wang Lingqin Gong Xiaolin Zhao Meidan Li Xiaojuan Zhai Qiyuan Pu Guoqi Chen This port has been updated to Go 1.15.6: https://github.com/loongson/go Updates #46229 Change-Id: I246d9c22334d0ea9e1440d29df05c9ec2d472b30 Reviewed-on: https://go-review.googlesource.com/c/go/+/367038 Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: David Chase Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot --- src/cmd/compile/internal/ssa/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/ssa/block.go b/src/cmd/compile/internal/ssa/block.go index db7df3f3384..9a1dc8e7d12 100644 --- a/src/cmd/compile/internal/ssa/block.go +++ b/src/cmd/compile/internal/ssa/block.go @@ -119,7 +119,7 @@ func (e Edge) String() string { // Plain [] [next] // If [boolean Value] [then, else] // Defer [mem] [nopanic, panic] (control opcode should be OpStaticCall to runtime.deferproc) -type BlockKind int8 +type BlockKind int16 // short form print func (b *Block) String() string {