]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: update comment/message that mention betypeinit
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 3 May 2022 14:10:34 +0000 (21:10 +0700)
committerGopher Robot <gobot@golang.org>
Mon, 9 May 2022 17:37:08 +0000 (17:37 +0000)
Since when CL 29244 did remove it.

Change-Id: I5f96d7404209cbc336b0541502943871461cb72e
Reviewed-on: https://go-review.googlesource.com/c/go/+/403714
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/types/size.go
src/cmd/compile/internal/types/universe.go

index a6e43c8a756947388548e2268bff792e1e3e76a5..7122b2720ff5bfeb63edbe263b0406d734958b94 100644 (file)
@@ -60,7 +60,7 @@ var MaxWidth int64
 var CalcSizeDisabled bool
 
 // machine size and rounding alignment is dictated around
-// the size of a pointer, set in betypeinit (see ../amd64/galign.go).
+// the size of a pointer, set in gc.Main (see ../gc/main.go).
 var defercalc int
 
 func Rnd(o int64, r int64) int64 {
index 4dff4548da7201c5c1968bc446e54e0f20a1d087..0ad2d35ce674dfe5f35a831b60b1136cc713adf8 100644 (file)
@@ -42,7 +42,7 @@ var typedefs = [...]struct {
 
 func InitTypes(defTypeName func(sym *Sym, typ *Type) Object) {
        if PtrSize == 0 {
-               base.Fatalf("typeinit before betypeinit")
+               base.Fatalf("InitTypes called before PtrSize was set")
        }
 
        SlicePtrOffset = 0