aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-01-14 05:37:12 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-01-14 05:37:12 +0000
commit82afdd42e262f0d34139a4fece094c4e90e45d9d (patch)
tree21a37cec18c287ec0199b0759035beff8e2920c6 /gcc
parent3dac68b99e0aa1503c2743f70e67a84401002a45 (diff)
downloadgcc-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.cc2
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.