mirror of
https://github.com/intel/llvm.git
synced 2026-01-31 16:29:50 +08:00
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:
@@ -146,7 +146,7 @@ void
|
||||
Error::Clear ()
|
||||
{
|
||||
m_code = 0;
|
||||
m_type = eErrorTypeGeneric;
|
||||
m_type = eErrorTypeInvalid;
|
||||
m_string.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user