[llvm-commits] [llvm] r159583 - /llvm/trunk/include/llvm/Support/IntegersSubset.h

David Blaikie dblaikie at gmail.com
Mon Jul 2 14:00:00 PDT 2012


Author: dblaikie
Date: Mon Jul  2 16:00:00 2012
New Revision: 159583

URL: http://llvm.org/viewvc/llvm-project?rev=159583&view=rev
Log:
Fix -Wstring-conversion warning.

Patch by Matt Beaumont-Gay.

Modified:
    llvm/trunk/include/llvm/Support/IntegersSubset.h

Modified: llvm/trunk/include/llvm/Support/IntegersSubset.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IntegersSubset.h?rev=159583&r1=159582&r2=159583&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/IntegersSubset.h (original)
+++ llvm/trunk/include/llvm/Support/IntegersSubset.h Mon Jul  2 16:00:00 2012
@@ -218,8 +218,7 @@
         const_cast<Type&>(RangeType) = RANGE;
         return false;
       }
-      assert(!"Unknown state?!");
-      return false;
+      llvm_unreachable("Unknown state?!");
     }
 
     const IntType& getLow() const {





More information about the llvm-commits mailing list