summaryrefslogtreecommitdiff
path: root/unittests/Transforms/DebugIR/DebugIR.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Transforms/DebugIR/DebugIR.cpp')
-rw-r--r--unittests/Transforms/DebugIR/DebugIR.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Transforms/DebugIR/DebugIR.cpp b/unittests/Transforms/DebugIR/DebugIR.cpp
index c4ebc5cfa4..41df147216 100644
--- a/unittests/Transforms/DebugIR/DebugIR.cpp
+++ b/unittests/Transforms/DebugIR/DebugIR.cpp
@@ -18,6 +18,7 @@
#include "llvm/IR/DIBuilder.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/Module.h"
+#include "llvm/Support/Errc.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/Path.h"
@@ -58,7 +59,7 @@ bool removeIfExists(StringRef Path) {
// This is an approximation, on error we don't know in general if the file
// existed or not.
std::error_code EC = sys::fs::remove(Path, false);
- return EC != std::errc::no_such_file_or_directory;
+ return EC != llvm::errc::no_such_file_or_directory;
}
char * current_dir() {