From 9986295b4f4702e5e02102cb257ae71fceedffec Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 12 Jun 2014 14:02:15 +0000 Subject: 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 --- lib/Tooling/JSONCompilationDatabase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Tooling/JSONCompilationDatabase.cpp') 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 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; -- cgit v1.2.1