[llvm-objdump] Add missing call to exit(1).
[oota-llvm.git] / tools / llvm-objdump / llvm-objdump.cpp
index 7496872edc387c18bd518fe736955d1d58a1e8d9..22f5519f5008a6a598d0256dfb7027a70a930b62 100644 (file)
@@ -249,6 +249,7 @@ void llvm::error(std::error_code EC) {
 
   outs() << ToolName << ": error reading file: " << EC.message() << ".\n";
   outs().flush();
+  exit(1);
 }
 
 static void report_error(StringRef File, std::error_code EC) {