[llvm-readobj] reportError() never returns. Mark with the correct attribute.
authorDavide Italiano <davide@freebsd.org>
Fri, 4 Dec 2015 19:29:49 +0000 (19:29 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 4 Dec 2015 19:29:49 +0000 (19:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254752 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-readobj/llvm-readobj.cpp

index 63cec03..5406aff 100644 (file)
@@ -231,7 +231,7 @@ namespace opts {
 
 namespace llvm {
 
-void reportError(Twine Msg) {
+LLVM_ATTRIBUTE_NORETURN void reportError(Twine Msg) {
   outs() << "\nError reading file: " << Msg << ".\n";
   outs().flush();
   exit(1);