<p dir="ltr">This is still a bit confusing. If it is not to be used programmatically, why the error code?</p>
<div class="gmail_quote">On May 26, 2016 10:49 PM, "Lang Hames via llvm-commits" <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: lhames<br>
Date: Thu May 26 21:43:15 2016<br>
New Revision: 270956<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=270956&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=270956&view=rev</a><br>
Log:<br>
[Support] Remove a stale comment.<br>
<br>
This comment was included in Peter Collingbourne's original version of<br>
StringError (see <a href="http://reviews.llvm.org/D20550" rel="noreferrer" target="_blank">http://reviews.llvm.org/D20550</a>), where it made sense. It was<br>
accidentally copied over with the rest of the class, but no longer applies.<br>
<br>
<br>
Modified:<br>
    llvm/trunk/include/llvm/Support/Error.h<br>
<br>
Modified: llvm/trunk/include/llvm/Support/Error.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Error.h?rev=270956&r1=270955&r2=270956&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Error.h?rev=270956&r1=270955&r2=270956&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/Support/Error.h (original)<br>
+++ llvm/trunk/include/llvm/Support/Error.h Thu May 26 21:43:15 2016<br>
@@ -886,8 +886,7 @@ template <typename T> ErrorOr<T> expecte<br>
 ///<br>
 /// StringError is useful in cases where the client is not expected to be able<br>
 /// to consume the specific error message programmatically (for example, if the<br>
-/// error message is to be presented to the user). It cannot be converted to a<br>
-/// std::error_code.<br>
+/// error message is to be presented to the user).<br>
 class StringError : public ErrorInfo<StringError> {<br>
 public:<br>
   static char ID;<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>