[llvm-objdump] Add missing call to exit(1).
authorDavide Italiano <davide@freebsd.org>
Thu, 6 Aug 2015 00:18:52 +0000 (00:18 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 6 Aug 2015 00:18:52 +0000 (00:18 +0000)
Reported by: Rafael Espindola.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244184 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objdump/llvm-objdump.cpp

index 7496872..22f5519 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) {