Commit 8ed8ea79 by Ian Lance Taylor

Fix generating type descriptor for array with float length.

From-SVN: r168983
parent d4d2a98f
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment