#include "llvm/LTO/Caching.h"
#include "llvm/ADT/StringExtras.h"
+#include "llvm/Support/Errc.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
return AddStreamFn();
}
- // FIXME: Workaround for libstdc++ version mismatch bug, see D31063 review
- // thread.
- if ((std::errc)MBOrErr.getError().value() !=
- std::errc::no_such_file_or_directory)
+ if (MBOrErr.getError() != errc::no_such_file_or_directory)
report_fatal_error(Twine("Failed to open cache file ") + EntryPath +
": " + MBOrErr.getError().message() + "\n");