summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-12 21:36:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-12 21:36:35 +0000
commit6b309ab8d5609baf608d01bfb72cd17ee3aa48c7 (patch)
tree150e27ebd14a22d970c1b2c2faa00a8a73eb4309 /lib/CodeGen/CodeGenAction.cpp
parentc69953ccc350965f814aafbbcf907a116083d7eb (diff)
downloadclang-6b309ab8d5609baf608d01bfb72cd17ee3aa48c7.tar.gz
clang-6b309ab8d5609baf608d01bfb72cd17ee3aa48c7.tar.bz2
clang-6b309ab8d5609baf608d01bfb72cd17ee3aa48c7.tar.xz
Prefix another use of error_code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--lib/CodeGen/CodeGenAction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp
index db3ecc5672..407fe94049 100644
--- a/lib/CodeGen/CodeGenAction.cpp
+++ b/lib/CodeGen/CodeGenAction.cpp
@@ -621,7 +621,7 @@ ASTConsumer *CodeGenAction::CreateASTConsumer(CompilerInstance &CI,
ErrorOr<llvm::Module *> ModuleOrErr =
getLazyBitcodeModule(BCBuf, *VMContext);
- if (error_code EC = ModuleOrErr.getError()) {
+ if (std::error_code EC = ModuleOrErr.getError()) {
CI.getDiagnostics().Report(diag::err_cannot_open_file)
<< LinkBCFile << EC.message();
return nullptr;