[llvm] r244184 - [llvm-objdump] Add missing call to exit(1).
Davide Italiano
davide at freebsd.org
Wed Aug 5 17:18:52 PDT 2015
Author: davide
Date: Wed Aug 5 19:18:52 2015
New Revision: 244184
URL: http://llvm.org/viewvc/llvm-project?rev=244184&view=rev
Log:
[llvm-objdump] Add missing call to exit(1).
Reported by: Rafael Espindola.
Modified:
llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Modified: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp?rev=244184&r1=244183&r2=244184&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp Wed Aug 5 19:18:52 2015
@@ -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) {
More information about the llvm-commits
mailing list