Don't crash on invalid use of multiple results.
From-SVN: r168222
This commit is contained in:
parent
38ac6be772
commit
3746f0c781
1 changed files with 14 additions and 5 deletions
|
@ -3253,26 +3253,35 @@ class Call_multiple_result_type : public Type
|
|||
protected:
|
||||
bool
|
||||
do_has_pointer() const
|
||||
{ gcc_unreachable(); }
|
||||
{
|
||||
gcc_assert(saw_errors());
|
||||
return false;
|
||||
}
|
||||
|
||||
tree
|
||||
do_get_tree(Gogo*);
|
||||
|
||||
tree
|
||||
do_get_init_tree(Gogo*, tree, bool)
|
||||
{ gcc_unreachable(); }
|
||||
{
|
||||
gcc_assert(saw_errors());
|
||||
return error_mark_node;
|
||||
}
|
||||
|
||||
Expression*
|
||||
do_type_descriptor(Gogo*, Named_type*)
|
||||
{ gcc_unreachable(); }
|
||||
{
|
||||
gcc_assert(saw_errors());
|
||||
return Expression::make_error(UNKNOWN_LOCATION);
|
||||
}
|
||||
|
||||
void
|
||||
do_reflection(Gogo*, std::string*) const
|
||||
{ gcc_unreachable(); }
|
||||
{ gcc_assert(saw_errors()); }
|
||||
|
||||
void
|
||||
do_mangled_name(Gogo*, std::string*) const
|
||||
{ gcc_unreachable(); }
|
||||
{ gcc_assert(saw_errors()); }
|
||||
|
||||
private:
|
||||
// The expression being called.
|
||||
|
|
Loading…
Add table
Reference in a new issue