projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
429aead
)
[llvm-ar] Added llvm_unreachable to quiet -Wreturn-type warnings.
author
Michael Gottesman
<mgottesman@apple.com>
Sat, 6 Jul 2013 02:39:51 +0000
(
02:39
+0000)
committer
Michael Gottesman
<mgottesman@apple.com>
Sat, 6 Jul 2013 02:39:51 +0000
(
02:39
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185751
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-ar/llvm-ar.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-ar/llvm-ar.cpp
b/tools/llvm-ar/llvm-ar.cpp
index 515f8991e84c9833c1f9273e0266746becd833ea..a9297eb05755ed87eebae38072211e885cf9f7c1 100644
(file)
--- a/
tools/llvm-ar/llvm-ar.cpp
+++ b/
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