summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-12 14:11:22 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-12 14:11:22 +0000
commit15aa07b2e8e1c5f2a3fc0a8f5f738b4e80b8df35 (patch)
tree98476cf9df55d8e6f36e57ecc2d7f0a39c09f44a /unittests
parent7edfaf71485862ee52fb4977fa587e73aab6fa33 (diff)
downloadllvm-15aa07b2e8e1c5f2a3fc0a8f5f738b4e80b8df35.tar.gz
llvm-15aa07b2e8e1c5f2a3fc0a8f5f738b4e80b8df35.tar.bz2
llvm-15aa07b2e8e1c5f2a3fc0a8f5f738b4e80b8df35.tar.xz
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
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Transforms/DebugIR/DebugIR.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Transforms/DebugIR/DebugIR.cpp b/unittests/Transforms/DebugIR/DebugIR.cpp
index 5860e31b9d..c4ebc5cfa4 100644
--- a/unittests/Transforms/DebugIR/DebugIR.cpp
+++ b/unittests/Transforms/DebugIR/DebugIR.cpp
@@ -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;
}