projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79d3d3f
)
Don't look for methods on named pointer types.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Thu, 3 Mar 2011 03:31:17 +0000
(
03:31
+0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Thu, 3 Mar 2011 03:31:17 +0000
(
03:31
+0000)
From-SVN: r170640
gcc/go/gofrontend/types.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/types.cc
b/gcc/go/gofrontend/types.cc
index 368ecae127a084c8457bcae6a5433a76f306e2f8..cebf33ae384d8cc1c5e6b9a797b0b4f744812e7f 100644
(file)
--- a/
gcc/go/gofrontend/types.cc
+++ b/
gcc/go/gofrontend/types.cc
@@
-7963,9
+7963,7
@@
Type::bind_field_or_method(Gogo* gogo, const Type* type, Expression* expr,
if (type->deref()->is_error_type())
return Expression::make_error(location);
- const Named_type* nt = type->named_type();
- if (nt == NULL)
- nt = type->deref()->named_type();
+ const Named_type* nt = type->deref()->named_type();
const Struct_type* st = type->deref()->struct_type();
const Interface_type* it = type->deref()->interface_type();