mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-14 16:40:01 +08:00
Don't get confused by error types in traversal.
From-SVN: r167836
This commit is contained in:
parent
b427203d21
commit
662563121c
@ -4201,6 +4201,8 @@ Traverse::~Traverse()
|
||||
bool
|
||||
Traverse::remember_type(const Type* type)
|
||||
{
|
||||
if (type->is_error_type())
|
||||
return true;
|
||||
gcc_assert((this->traverse_mask() & traverse_types) != 0
|
||||
|| (this->traverse_mask() & traverse_expressions) != 0);
|
||||
// We only have to remember named types, as they are the only ones
|
||||
|
Loading…
Reference in New Issue
Block a user