summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/llvm-ar.cpp
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-07-06 02:39:51 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-07-06 02:39:51 +0000
commit11dd1d04ca5dff18da64f0bbc3c02d3eb2066d6e (patch)
tree38017d670d1b163238c5f8bcac07456e49452f93 /llvm/tools/llvm-ar/llvm-ar.cpp
parentc13678a24faaa3c67296b23171b8a46eb521910f (diff)
downloadbcm5719-llvm-11dd1d04ca5dff18da64f0bbc3c02d3eb2066d6e.tar.gz
bcm5719-llvm-11dd1d04ca5dff18da64f0bbc3c02d3eb2066d6e.zip
[llvm-ar] Added llvm_unreachable to quiet -Wreturn-type warnings.
llvm-svn: 185751
Diffstat (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp')
-rw-r--r--llvm/tools/llvm-ar/llvm-ar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp
index 515f8991e84..a9297eb0575 100644
--- a/llvm/tools/llvm-ar/llvm-ar.cpp
+++ b/llvm/tools/llvm-ar/llvm-ar.cpp
@@ -655,6 +655,8 @@ bool shouldCreateArchive(ArchiveOperation Op) {
case ReplaceOrInsert:
return true;
}
+
+ llvm_unreachable("Missing entry in covered switch.");
}
// main - main program for llvm-ar .. see comments in the code
OpenPOWER on IntegriCloud