Use std::error_code instead of llvm::error_code.
[oota-llvm.git] / tools / llvm-cov / llvm-cov.cpp
index 9463609ae3de97c33acd9bd8c86a273afc29f25b..f15b9a026565c53d655d2bfe51df82741618e974 100644 (file)
@@ -116,7 +116,7 @@ int main(int argc, char **argv) {
 
   std::unique_ptr<MemoryBuffer> GCDA_Buff;
   if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputGCDA, GCDA_Buff)) {
-    if (ec != errc::no_such_file_or_directory) {
+    if (ec != std::errc::no_such_file_or_directory) {
       errs() << InputGCDA << ": " << ec.message() << "\n";
       return 1;
     }