<br><br><div>On Wed Jan 08 2014 at 2:33:34 PM, Rafael Espindola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: rafael<br>
Date: Wed Jan  8 16:27:04 2014<br>
New Revision: 198803<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=198803&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=198803&view=rev</a><br>
Log:<br>
Fix the C++03 build.<br>
<br>
With c++11 we never instantiate the copy constructor.<br></blockquote><div><br></div><div>Could we add a unit test for that?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Modified:<br>
    llvm/trunk/include/llvm/<u></u>Support/ErrorOr.h<br>
<br>
Modified: llvm/trunk/include/llvm/<u></u>Support/ErrorOr.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ErrorOr.h?rev=198803&r1=198802&r2=198803&view=diff" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project/llvm/trunk/include/<u></u>llvm/Support/ErrorOr.h?rev=<u></u>198803&r1=198802&r2=198803&<u></u>view=diff</a><br>

==============================<u></u>==============================<u></u>==================<br>
--- llvm/trunk/include/llvm/<u></u>Support/ErrorOr.h (original)<br>
+++ llvm/trunk/include/llvm/<u></u>Support/ErrorOr.h Wed Jan  8 16:27:04 2014<br>
@@ -203,7 +203,7 @@ private:<br>
     } else {<br>
       // Get other's error.<br>
       HasError = true;<br>
-      new (getErrorStorage()) error_code(Other);<br>
+      new (getErrorStorage()) error_code(Other.getError());<br>
     }<br>
   }<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvm-commits</a><br>
</blockquote>