diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-14 05:37:12 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-14 05:37:12 +0000 |
commit | 7672d35fc85a72fff0eadeb145651d07cef67d34 (patch) | |
tree | 21a37cec18c287ec0199b0759035beff8e2920c6 | |
parent | 60fd3d884e453f4277306304e1f619c2c6ace037 (diff) | |
download | gcc-7672d35fc85a72fff0eadeb145651d07cef67d34.tar.gz |
The type of a string slice is the type of the string being sliced.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168775 138bc75d-0d04-0410-961f-82ee72b054a4
-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 550d1aea0ab..a11e3d6fa17 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. |