Skip to content

Commit 25b95b4

Browse files
aclementsadonovan
authored andcommitted
go/ssa: fix some incorrect comments
Change-Id: I8aa4780e0fa4a182678f1d34b247ab203e906144 Reviewed-on: https://go-review.googlesource.com/119915 Reviewed-by: Alan Donovan <[email protected]>
1 parent fcb3cb6 commit 25b95b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go/ssa/ssa.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,8 @@ type BinOp struct {
547547
register
548548
// One of:
549549
// ADD SUB MUL QUO REM + - * / %
550-
// AND OR XOR SHL SHR AND_NOT & | ^ << >> &~
551-
// EQL LSS GTR NEQ LEQ GEQ == != < <= < >=
550+
// AND OR XOR SHL SHR AND_NOT & | ^ << >> &^
551+
// EQL NEQ LSS LEQ GTR GEQ == != < <= < >=
552552
Op token.Token
553553
X, Y Value
554554
}
@@ -788,7 +788,7 @@ type Slice struct {
788788
type FieldAddr struct {
789789
register
790790
X Value // *struct
791-
Field int // index into X.Type().Deref().(*types.Struct).Fields
791+
Field int // field is X.Type().Underlying().(*types.Pointer).Elem().Underlying().(*types.Struct).Field(Field)
792792
}
793793

794794
// The Field instruction yields the Field of struct X.

0 commit comments

Comments
 (0)