[llvm] r175846 - Remove warning about default covering no cases.

Bill Wendling isanbard at gmail.com
Thu Feb 21 16:50:10 PST 2013


Author: void
Date: Thu Feb 21 18:50:09 2013
New Revision: 175846

URL: http://llvm.org/viewvc/llvm-project?rev=175846&view=rev
Log:
Remove warning about default covering no cases.

Modified:
    llvm/trunk/lib/IR/Attributes.cpp

Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=175846&r1=175845&r2=175846&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Thu Feb 21 18:50:09 2013
@@ -356,8 +356,6 @@ bool AttributeImpl::operator<(const Attr
 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(Attr
   case Attribute::ThreadSafety:    return 1ULL << 36;
   case Attribute::UninitializedChecks: return 1ULL << 37;
   case Attribute::NoBuiltin:       return 1ULL << 38;
- }
+  }
+  llvm_unreachable("Unsupported attribute type");
 }
 
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list