Error::Clear() should reset the type to invalid instead of generic.

This matches the behavior of the default constructor, so is
technically more correct.

Patch by Chaoren Lin
Differential Revision: http://reviews.llvm.org/D7113

llvm-svn: 226851
This commit is contained in:
Zachary Turner 2015-01-22 19:30:05 +00:00
parent f12b33454f
commit ef489e9751
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ void
Error::Clear ()
{
m_code = 0;
m_type = eErrorTypeGeneric;
m_type = eErrorTypeInvalid;
m_string.clear();
}