aboutsummaryrefslogtreecommitdiff
path: root/lib/IR
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-22 00:50:09 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-22 00:50:09 +0000
commitbd2acfab4a4692ce39541f380997945e9bbb14ae (patch)
treecde2d991b299b156c410732a1ea0d9254c5043b7 /lib/IR
parentd18e0b94bfaad5b8a24fcb45b55d7e031cc94202 (diff)
Remove warning about default covering no cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Attributes.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp
index 84d14b4419..11ed82d795 100644
--- a/lib/IR/Attributes.cpp
+++ b/lib/IR/Attributes.cpp
@@ -356,8 +356,6 @@ bool AttributeImpl::operator<(const AttributeImpl &AI) const {
uint64_t AttributeImpl::getAttrMask(Attribute::AttrKind Val) {
// FIXME: Remove this.
switch (Val) {
- default:
- llvm_unreachable("Unsupported attribute type");
case Attribute::EndAttrKinds:
llvm_unreachable("Synthetic enumerators which should never get here");
@@ -395,7 +393,8 @@ uint64_t AttributeImpl::getAttrMask(Attribute::AttrKind Val) {
case Attribute::ThreadSafety: return 1ULL << 36;
case Attribute::UninitializedChecks: return 1ULL << 37;
case Attribute::NoBuiltin: return 1ULL << 38;
- }
+ }
+ llvm_unreachable("Unsupported attribute type");
}
//===----------------------------------------------------------------------===//