mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 19:24:33 +00:00
Replace llvm::error_code with std::error_code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210783 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -57,7 +57,7 @@ void insertCUDescriptor(Module *M, StringRef File, StringRef Dir,
|
||||
bool removeIfExists(StringRef Path) {
|
||||
// This is an approximation, on error we don't know in general if the file
|
||||
// existed or not.
|
||||
llvm::error_code EC = sys::fs::remove(Path, false);
|
||||
std::error_code EC = sys::fs::remove(Path, false);
|
||||
return EC != std::errc::no_such_file_or_directory;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user