From 0de20884796d0806e2e3541d8e925bb4b3c5bf9e Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Thu, 6 Aug 2015 00:18:52 +0000 Subject: [PATCH] [llvm-objdump] Add missing call to exit(1). 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp index 7496872edc3..22f5519f500 100644 --- a/tools/llvm-objdump/llvm-objdump.cpp +++ b/tools/llvm-objdump/llvm-objdump.cpp @@ -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) { -- 2.34.1