From 7520cff8d3fa3b190039d4736285830967ee1f6c Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 8 Nov 2013 08:55:16 -0800 Subject: [PATCH] go.tools/go/types: remove a workaround for 386 bug R=adonovan CC=golang-dev https://golang.org/cl/23350043 --- go/types/types_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/go/types/types_test.go b/go/types/types_test.go index ca305488..af4fdb7d 100644 --- a/go/types/types_test.go +++ b/go/types/types_test.go @@ -171,11 +171,7 @@ func TestExprs(t *testing.T) { t.Errorf("%s: %s", src, err) continue } - // TODO(gri) writing the code below w/o the decl variable will - // cause a 386 compiler error (out of fixed registers) - decl := file.Decls[0].(*ast.GenDecl) - expr := decl.Specs[0].(*ast.ValueSpec).Values[0] - str := exprString(expr) + str := exprString(file.Decls[0].(*ast.GenDecl).Specs[0].(*ast.ValueSpec).Values[0]) if str != test.str { t.Errorf("%s: got %s, want %s", test.src, str, test.str) }