Don't use 'using std::error_code' in include/llvm.
[oota-llvm.git] / lib / Support / raw_ostream.cpp
index 6a61b1b2a6ccc2b709c6b004b7a3a4051c1e2aa2..f7c213ac2b85127ecc63a28cace6d6258163e35a 100644 (file)
@@ -450,7 +450,7 @@ raw_fd_ostream::raw_fd_ostream(const char *Filename, std::string &ErrorInfo,
     return;
   }
 
-  error_code EC = sys::fs::openFileForWrite(Filename, FD, Flags);
+  std::error_code EC = sys::fs::openFileForWrite(Filename, FD, Flags);
 
   if (EC) {
     ErrorInfo = "Error opening output file '" + std::string(Filename) + "': " +