From 25b95b48224cce18163c7d49dcfb89a2d5ecd209 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Tue, 19 Jun 2018 21:23:51 -0400 Subject: [PATCH] go/ssa: fix some incorrect comments Change-Id: I8aa4780e0fa4a182678f1d34b247ab203e906144 Reviewed-on: https://go-review.googlesource.com/119915 Reviewed-by: Alan Donovan --- go/ssa/ssa.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go/ssa/ssa.go b/go/ssa/ssa.go index e8350f1c74c..7cde827cec2 100644 --- a/go/ssa/ssa.go +++ b/go/ssa/ssa.go @@ -547,8 +547,8 @@ type BinOp struct { register // One of: // ADD SUB MUL QUO REM + - * / % - // AND OR XOR SHL SHR AND_NOT & | ^ << >> &~ - // EQL LSS GTR NEQ LEQ GEQ == != < <= < >= + // AND OR XOR SHL SHR AND_NOT & | ^ << >> &^ + // EQL NEQ LSS LEQ GTR GEQ == != < <= < >= Op token.Token X, Y Value } @@ -788,7 +788,7 @@ type Slice struct { type FieldAddr struct { register X Value // *struct - Field int // index into X.Type().Deref().(*types.Struct).Fields + Field int // field is X.Type().Underlying().(*types.Pointer).Elem().Underlying().(*types.Struct).Field(Field) } // The Field instruction yields the Field of struct X.