Don't use 'using std::error_code' in include/llvm.
[oota-llvm.git] / lib / Object / Binary.cpp
index 63fd3ed0110692717518c251a7b577be9e2e6b33..c55ed0c75988b7b1a736fb06a6480851b8d68dde 100644 (file)
@@ -81,7 +81,7 @@ ErrorOr<Binary *> object::createBinary(MemoryBuffer *Source,
 
 ErrorOr<Binary *> object::createBinary(StringRef Path) {
   std::unique_ptr<MemoryBuffer> File;
-  if (error_code EC = MemoryBuffer::getFileOrSTDIN(Path, File))
+  if (std::error_code EC = MemoryBuffer::getFileOrSTDIN(Path, File))
     return EC;
   return createBinary(File.release());
 }