]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/ssa: increase the bit width of BlockKind type
authorXiaodong Liu <liuxiaodong@loongson.cn>
Wed, 24 Nov 2021 09:53:07 +0000 (17:53 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 11 May 2022 23:20:01 +0000 (23:20 +0000)
After the BlockKind of loong64 is introduced, it exceeds the maximum
range that int8 can represent.

Contributors to the loong64 port are:
  Weining Lu <luweining@loongson.cn>
  Lei Wang <wanglei@loongson.cn>
  Lingqin Gong <gonglingqin@loongson.cn>
  Xiaolin Zhao <zhaoxiaolin@loongson.cn>
  Meidan Li <limeidan@loongson.cn>
  Xiaojuan Zhai <zhaixiaojuan@loongson.cn>
  Qiyuan Pu <puqiyuan@loongson.cn>
  Guoqi Chen <chenguoqi@loongson.cn>

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 <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/cmd/compile/internal/ssa/block.go

index db7df3f3384e16e2b3233a75fc7385b07af4b831..9a1dc8e7d1216047800f39d2f8389f316761b358 100644 (file)
@@ -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 {