[llvm] r287277 - [lli] Prefer `exit(1)` to `return 1` for consistency.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 17 14:59:13 PST 2016
Author: davide
Date: Thu Nov 17 16:59:13 2016
New Revision: 287277
URL: http://llvm.org/viewvc/llvm-project?rev=287277&view=rev
Log:
[lli] Prefer `exit(1)` to `return 1` for consistency.
Modified:
llvm/trunk/tools/lli/lli.cpp
Modified: llvm/trunk/tools/lli/lli.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/lli.cpp?rev=287277&r1=287276&r2=287277&view=diff
==============================================================================
--- llvm/trunk/tools/lli/lli.cpp (original)
+++ llvm/trunk/tools/lli/lli.cpp Thu Nov 17 16:59:13 2016
@@ -525,7 +525,7 @@ int main(int argc, char **argv, char * c
logAllUnhandledErrors(ArOrErr.takeError(), OS, "");
OS.flush();
errs() << Buf;
- return 1;
+ exit(1);
}
std::unique_ptr<object::Archive> &Ar = ArOrErr.get();
More information about the llvm-commits
mailing list