summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCModuleYAML.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MC/MCModuleYAML.cpp')
-rw-r--r--llvm/lib/MC/MCModuleYAML.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCModuleYAML.cpp b/llvm/lib/MC/MCModuleYAML.cpp
index 0df6afd9f02..f6b7431eb3b 100644
--- a/llvm/lib/MC/MCModuleYAML.cpp
+++ b/llvm/lib/MC/MCModuleYAML.cpp
@@ -25,7 +25,6 @@
#include <vector>
namespace llvm {
-using std::error_code;
namespace {
@@ -454,7 +453,7 @@ StringRef yaml2mcmodule(std::unique_ptr<MCModule> &MCM, StringRef YamlContent,
InstrRegInfoHolder IRI(MII, MRI);
yaml::Input YIn(YamlContent, (void *)&IRI);
YIn >> YAMLModule;
- if (error_code ec = YIn.error())
+ if (std::error_code ec = YIn.error())
return ec.message();
StringRef err = Parser.parse(YAMLModule);
if (!err.empty())
OpenPOWER on IntegriCloud