diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-01-14 05:37:12 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-01-14 05:37:12 +0000 |
commit | 82afdd42e262f0d34139a4fece094c4e90e45d9d (patch) | |
tree | 21a37cec18c287ec0199b0759035beff8e2920c6 /gcc | |
parent | 3dac68b99e0aa1503c2743f70e67a84401002a45 (diff) | |
download | gcc-82afdd42e262f0d34139a4fece094c4e90e45d9d.zip gcc-82afdd42e262f0d34139a4fece094c4e90e45d9d.tar.gz gcc-82afdd42e262f0d34139a4fece094c4e90e45d9d.tar.bz2 |
The type of a string slice is the type of the string being sliced.
From-SVN: r168775
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/expressions.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index 550d1aea..a11e3d6 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -9541,7 +9541,7 @@ String_index_expression::do_type() if (this->end_ == NULL) return Type::lookup_integer_type("uint8"); else - return Type::make_string_type(); + return this->string_->type(); } // Determine the type of a string index. |