]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.regabi] cmd/compile: fix OSLICEARR comments
authorKeith Randall <khr@golang.org>
Tue, 29 Dec 2020 18:07:38 +0000 (10:07 -0800)
committerKeith Randall <khr@golang.org>
Wed, 30 Dec 2020 16:37:51 +0000 (16:37 +0000)
Change-Id: Ia6e734977a2cd80c91c28f4525be403f062dccc6
Reviewed-on: https://go-review.googlesource.com/c/go/+/280651
Trust: Keith Randall <khr@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ir/node.go

index 0d56b5aeb8062ac9285d18f95483ba12f508ff2b..9536503085bca1a6c304e04df206ffd575e8b146 100644 (file)
@@ -218,10 +218,10 @@ const (
        OPAREN       // (Left)
        OSEND        // Left <- Right
        OSLICE       // Left[List[0] : List[1]] (Left is untypechecked or slice)
-       OSLICEARR    // Left[List[0] : List[1]] (Left is array)
+       OSLICEARR    // Left[List[0] : List[1]] (Left is pointer to array)
        OSLICESTR    // Left[List[0] : List[1]] (Left is string)
        OSLICE3      // Left[List[0] : List[1] : List[2]] (Left is untypedchecked or slice)
-       OSLICE3ARR   // Left[List[0] : List[1] : List[2]] (Left is array)
+       OSLICE3ARR   // Left[List[0] : List[1] : List[2]] (Left is pointer to array)
        OSLICEHEADER // sliceheader{Left, List[0], List[1]} (Left is unsafe.Pointer, List[0] is length, List[1] is capacity)
        ORECOVER     // recover()
        ORECV        // <-Left