diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-12 14:02:15 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-12 14:02:15 +0000 |
commit | 9986295b4f4702e5e02102cb257ae71fceedffec (patch) | |
tree | d2c566c85a6ef92e698ec19be71888839dc3645a /lib/Tooling/JSONCompilationDatabase.cpp | |
parent | 43a42fb5cd0c1eb7a5f3ac97b9d5e77c10bd8c22 (diff) | |
download | clang-9986295b4f4702e5e02102cb257ae71fceedffec.tar.gz |
Replace llvm::error_code with std::error_code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling/JSONCompilationDatabase.cpp')
-rw-r--r-- | lib/Tooling/JSONCompilationDatabase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Tooling/JSONCompilationDatabase.cpp b/lib/Tooling/JSONCompilationDatabase.cpp index 256b49c889..d99d7879ea 100644 --- a/lib/Tooling/JSONCompilationDatabase.cpp +++ b/lib/Tooling/JSONCompilationDatabase.cpp @@ -145,8 +145,8 @@ JSONCompilationDatabase * JSONCompilationDatabase::loadFromFile(StringRef FilePath, std::string &ErrorMessage) { std::unique_ptr<llvm::MemoryBuffer> DatabaseBuffer; - llvm::error_code Result = - llvm::MemoryBuffer::getFile(FilePath, DatabaseBuffer); + std::error_code Result = + llvm::MemoryBuffer::getFile(FilePath, DatabaseBuffer); if (Result) { ErrorMessage = "Error while opening JSON database: " + Result.message(); return nullptr; |