[llvm] r298127 - LTO: Work around libstdc++ version mismatch bug, see D31063 review thread.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 20 11:32:08 PDT 2017
On Mon, Mar 20, 2017 at 11:27 AM, Peter Collingbourne <peter at pcc.me.uk>
wrote:
> On Mon, Mar 20, 2017 at 6:06 AM, Rafael Avila de Espindola <
> rafael.espindola at gmail.com> wrote:
>
>> Peter Collingbourne via llvm-commits <llvm-commits at lists.llvm.org>
>> writes:
>>
>> > Author: pcc
>> > Date: Fri Mar 17 16:49:09 2017
>> > New Revision: 298127
>> >
>> > URL: http://llvm.org/viewvc/llvm-project?rev=298127&view=rev
>> > Log:
>> > LTO: Work around libstdc++ version mismatch bug, see D31063 review
>> thread.
>> >
>> > Modified:
>> > llvm/trunk/lib/LTO/Caching.cpp
>> >
>> > Modified: llvm/trunk/lib/LTO/Caching.cpp
>> > URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/Cachi
>> ng.cpp?rev=298127&r1=298126&r2=298127&view=diff
>> > ============================================================
>> ==================
>> > --- llvm/trunk/lib/LTO/Caching.cpp (original)
>> > +++ llvm/trunk/lib/LTO/Caching.cpp Fri Mar 17 16:49:09 2017
>> > @@ -37,7 +37,10 @@ Expected<NativeObjectCache> lto::localCa
>> > return AddStreamFn();
>> > }
>> >
>> > - if (MBOrErr.getError() != std::errc::no_such_file_or_directory)
>> > + // FIXME: Workaround for libstdc++ version mismatch bug, see
>> D31063 review
>> > + // thread.
>> > + if ((std::errc)MBOrErr.getError().value() !=
>> > + std::errc::no_such_file_or_directory)
>> > report_fatal_error(Twine("Failed to open cache file ") +
>> EntryPath +
>> > ": " + MBOrErr.getError().message() + "\n");
>>
>> Can't you use llvm::errc?
>>
>
> It seems likely that it will help. I will try it and keep an eye on the
> bots.
>
r298285.
--
--
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170320/8ca2529f/attachment.html>
More information about the llvm-commits
mailing list