<p dir="ltr">It doesn't make much of a difference really, but the default type of an error is invalid. It seems weird that clear doesn't produce the same thing as the default constructor.</p>
<div class="gmail_quote">On Jan 21, 2015 6:43 PM, "Siva Chandra" <<a href="mailto:sivachandra@google.com">sivachandra@google.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">================<br>
Comment at: source/Core/Error.cpp:149<br>
@@ -148,3 +148,3 @@<br>
     m_code = 0;<br>
-    m_type = eErrorTypeGeneric;<br>
+    m_type = eErrorTypeInvalid;<br>
     m_string.clear();<br>
----------------<br>
Drive by comment:<br>
While I do not know if this OK or not, you should explain why this change is required in your commit message.<br>
<br>
<a href="http://reviews.llvm.org/D7113" target="_blank">http://reviews.llvm.org/D7113</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
</blockquote></div>