projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4d2a98
)
Fix generating type descriptor for array with float length.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 19 Jan 2011 05:49:25 +0000
(
05:49
+0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 19 Jan 2011 05:49:25 +0000
(
05:49
+0000)
From-SVN: r168983
gcc/go/gofrontend/types.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/types.cc
b/gcc/go/gofrontend/types.cc
index 840de2ba82f36c14f03338d7a0550543a393ec65..bbf217abacc08c04d84b73a12d494deb9cc12d86 100644
(file)
--- a/
gcc/go/gofrontend/types.cc
+++ b/
gcc/go/gofrontend/types.cc
@@
-4883,7
+4883,7
@@
Array_type::array_type_descriptor(Gogo* gogo, Named_type* name)
++p;
gcc_assert(p->field_name() == "len");
- vals->push_back(
this->length_
);
+ vals->push_back(
Expression::make_cast(p->type(), this->length_, bloc)
);
++p;
gcc_assert(p == fields->end());