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:
parent
f12b33454f
commit
ef489e9751
@ -146,7 +146,7 @@ void
|
||||
Error::Clear ()
|
||||
{
|
||||
m_code = 0;
|
||||
m_type = eErrorTypeGeneric;
|
||||
m_type = eErrorTypeInvalid;
|
||||
m_string.clear();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user