diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-03 17:42:02 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-03 17:42:02 +0000 |
commit | f070c0498e4dc44c1db59c394895710553f63beb (patch) | |
tree | 7e41d6bef14ae2a2eb810186fb556bdef6370559 /gcc | |
parent | ecfd6cece6e9846fb5c83cd66c32ad8ff6847c9f (diff) | |
download | gcc-f070c0498e4dc44c1db59c394895710553f63beb.zip gcc-f070c0498e4dc44c1db59c394895710553f63beb.tar.gz gcc-f070c0498e4dc44c1db59c394895710553f63beb.tar.bz2 |
compiler: Build import tables as needed for imported interfaces.
From-SVN: r187111
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/import.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/import.cc b/gcc/go/gofrontend/import.cc index 58b0355..b0d1008 100644 --- a/gcc/go/gofrontend/import.cc +++ b/gcc/go/gofrontend/import.cc @@ -669,6 +669,9 @@ Import::read_type() // This type has not yet been imported. ntype->clear_is_visible(); + if (!type->is_undefined() && type->interface_type() != NULL) + this->gogo_->record_interface_type(type->interface_type()); + type = ntype; } else if (no->is_type()) |