go/ssa: fix some incorrect comments
Change-Id: I8aa4780e0fa4a182678f1d34b247ab203e906144
Reviewed-on: https://go-review.googlesource.com/119915
Reviewed-by: Alan Donovan <adonovan@google.com>
diff --git a/go/ssa/ssa.go b/go/ssa/ssa.go
index e8350f1..7cde827 100644
--- a/go/ssa/ssa.go
+++ b/go/ssa/ssa.go
@@ -547,8 +547,8 @@
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 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.