diff --git a/llvm/tools/llvm-size/llvm-size.cpp b/llvm/tools/llvm-size/llvm-size.cpp --- a/llvm/tools/llvm-size/llvm-size.cpp +++ b/llvm/tools/llvm-size/llvm-size.cpp @@ -868,8 +868,11 @@ StringSaver Saver(A); SizeOptTable Tbl; ToolName = argv[0]; - opt::InputArgList Args = Tbl.parseArgs(argc, argv, OPT_UNKNOWN, Saver, - [&](StringRef Msg) { error(Msg); }); + opt::InputArgList Args = + Tbl.parseArgs(argc, argv, OPT_UNKNOWN, Saver, [&](StringRef Msg) { + error(Msg); + exit(1); + }); if (Args.hasArg(OPT_help)) { Tbl.printHelp( outs(),