[PATCH] D63296: [libc++] Fix build with gcc 4.8

Tom Anderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 15:24:53 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL363333: [libc++] Fix build with gcc 4.8 (authored by thomasanderson, committed by ).
Herald added subscribers: llvm-commits, christof.
Herald added a project: LLVM.

Changed prior to commit:
  https://reviews.llvm.org/D63296?vs=204617&id=204641#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63296/new/

https://reviews.llvm.org/D63296

Files:
  libcxx/trunk/include/charconv


Index: libcxx/trunk/include/charconv
===================================================================
--- libcxx/trunk/include/charconv
+++ libcxx/trunk/include/charconv
@@ -314,7 +314,7 @@
 
 #if !defined(_LIBCPP_COMPILER_MSVC)
     if (__tx::digits <= __diff || __tx::__width(__value) <= __diff)
-        return {__tx::__convert(__value, __first), {}};
+        return {__tx::__convert(__value, __first), errc(0)};
     else
         return {__last, errc::value_too_large};
 #else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63296.204641.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190613/49fbdb98/attachment.bin>


More information about the llvm-commits mailing list