Skip to content

Commit

Permalink
LTO: Work around libstdc++ version mismatch bug, see D31063 review th…
Browse files Browse the repository at this point in the history
…read.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298127 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
pcc committed Mar 17, 2017
1 parent 6cf5553 commit dcae6ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/LTO/Caching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ Expected<NativeObjectCache> lto::localCache(StringRef CacheDirectoryPath,
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");

Expand Down

0 comments on commit dcae6ca

Please sign in to comment.