There is no std::errc::success, remove the llvm one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2014-05-31 03:21:04 +00:00
parent 1028cc76ef
commit c145fd3cf5
7 changed files with 7 additions and 9 deletions

View File

@ -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) {