diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-31 03:21:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-31 03:21:04 +0000 |
commit | a3f2e3f01ea8a83a7dd549fdcd55db76c1f07d77 (patch) | |
tree | bdeb4c696c0db038fc60d44c5a107e79ff99910f /llvm/lib/Support/LockFileManager.cpp | |
parent | 3ae0620a45ea25a9e1062323a56a5717616b6bed (diff) | |
download | bcm5719-llvm-a3f2e3f01ea8a83a7dd549fdcd55db76c1f07d77.tar.gz bcm5719-llvm-a3f2e3f01ea8a83a7dd549fdcd55db76c1f07d77.zip |
There is no std::errc::success, remove the llvm one.
llvm-svn: 209960
Diffstat (limited to 'llvm/lib/Support/LockFileManager.cpp')
-rw-r--r-- | llvm/lib/Support/LockFileManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/LockFileManager.cpp b/llvm/lib/Support/LockFileManager.cpp index 9b4bfbe8198..05e75cff1ac 100644 --- a/llvm/lib/Support/LockFileManager.cpp +++ b/llvm/lib/Support/LockFileManager.cpp @@ -124,7 +124,7 @@ LockFileManager::LockFileManager(StringRef FileName) // Create a link from the lock file name. If this succeeds, we're done. error_code EC = sys::fs::create_link(UniqueLockFileName.str(), LockFileName.str()); - if (EC == errc::success) + if (!EC) return; if (EC != errc::file_exists) { |