diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-12-12 18:45:24 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-12-12 18:45:24 +0000 |
commit | 10d91e57986941516dc7c0d1c6ec0915d68f614e (patch) | |
tree | f43417def1385528bc3c3f1f6c36c5b991642fb9 /gcc/go | |
parent | f7685b6677db3979392d7a063d4660b84c461c42 (diff) | |
download | gcc-10d91e57986941516dc7c0d1c6ec0915d68f614e.zip gcc-10d91e57986941516dc7c0d1c6ec0915d68f614e.tar.gz gcc-10d91e57986941516dc7c0d1c6ec0915d68f614e.tar.bz2 |
compiler: Don't compare structs with blank non-comparable fields.
From-SVN: r205937
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/types.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index 33c23e5..d079565 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -575,9 +575,6 @@ Type::are_compatible_for_comparison(bool is_equality_op, const Type *t1, p != fields->end(); ++p) { - if (Gogo::is_sink_name(p->field_name())) - continue; - if (!p->type()->is_comparable()) { if (reason != NULL) |