From ef489e9751f9f90dd7e4e30e4dff079d607d096d Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 22 Jan 2015 19:30:05 +0000 Subject: 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 --- lldb/source/Core/Error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Core/Error.cpp') diff --git a/lldb/source/Core/Error.cpp b/lldb/source/Core/Error.cpp index 03cfd41b288..5b0bbe27360 100644 --- a/lldb/source/Core/Error.cpp +++ b/lldb/source/Core/Error.cpp @@ -146,7 +146,7 @@ void Error::Clear () { m_code = 0; - m_type = eErrorTypeGeneric; + m_type = eErrorTypeInvalid; m_string.clear(); } -- cgit v1.2.3