[Lldb-commits] [lldb] r226851 - Error::Clear() should reset the type to invalid instead of generic.

Zachary Turner zturner at google.com
Thu Jan 22 11:30:05 PST 2015


Author: zturner
Date: Thu Jan 22 13:30:05 2015
New Revision: 226851

URL: http://llvm.org/viewvc/llvm-project?rev=226851&view=rev
Log:
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

Modified:
    lldb/trunk/source/Core/Error.cpp

Modified: lldb/trunk/source/Core/Error.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Error.cpp?rev=226851&r1=226850&r2=226851&view=diff
==============================================================================
--- lldb/trunk/source/Core/Error.cpp (original)
+++ lldb/trunk/source/Core/Error.cpp Thu Jan 22 13:30:05 2015
@@ -146,7 +146,7 @@ void
 Error::Clear ()
 {
     m_code = 0;
-    m_type = eErrorTypeGeneric;
+    m_type = eErrorTypeInvalid;
     m_string.clear();
 }
 





More information about the lldb-commits mailing list