Don't put generic_category in the llvm namespace.
[oota-llvm.git] / lib / Support / Path.cpp
index 9d98503e02f0e5710038d7a96b673f6123b8da42..dabf763c8dbf637a9053614e1354330e9befc1eb 100644 (file)
@@ -1030,7 +1030,7 @@ error_code identify_magic(const Twine &Path, file_magic &Result) {
   char Buffer[32];
   int Length = read(FD, Buffer, sizeof(Buffer));
   if (Length < 0)
-    return error_code(errno, generic_category());
+    return error_code(errno, std::generic_category());
 
   Result = identify_magic(StringRef(Buffer, Length));
   return error_code();