summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Error.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-01-22 19:30:05 +0000
committerZachary Turner <zturner@google.com>2015-01-22 19:30:05 +0000
commitef489e9751f9f90dd7e4e30e4dff079d607d096d (patch)
tree84247517de7ead1d187d0e5d23216111fe3475b2 /lldb/source/Core/Error.cpp
parentf12b33454f49b3dd084a9c3364bd2c4a39b19f71 (diff)
downloadbcm5719-llvm-ef489e9751f9f90dd7e4e30e4dff079d607d096d.tar.gz
bcm5719-llvm-ef489e9751f9f90dd7e4e30e4dff079d607d096d.zip
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
Diffstat (limited to 'lldb/source/Core/Error.cpp')
-rw-r--r--lldb/source/Core/Error.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}
OpenPOWER on IntegriCloud