Fix -Wstring-conversion warning.
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 2 Jul 2012 21:00:00 +0000 (21:00 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 2 Jul 2012 21:00:00 +0000 (21:00 +0000)
Patch by Matt Beaumont-Gay.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159583 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/IntegersSubset.h

index 35e2dadb9562d95457b6cd81b614f48d13eda247..4d76fab2d0941a4dcc959b8074e165488aeb7d2d 100644 (file)
@@ -218,8 +218,7 @@ public:
         const_cast<Type&>(RangeType) = RANGE;
         return false;
       }
-      assert(!"Unknown state?!");
-      return false;
+      llvm_unreachable("Unknown state?!");
     }
 
     const IntType& getLow() const {