[RuntimeDebugBuilder] Turn assert into an unreachable
authorTobias Grosser <tobias@grosser.es>
Wed, 18 Apr 2018 20:18:43 +0000 (20:18 +0000)
committerTobias Grosser <tobias@grosser.es>
Wed, 18 Apr 2018 20:18:43 +0000 (20:18 +0000)
llvm-svn: 330289

polly/lib/CodeGen/RuntimeDebugBuilder.cpp

index 16a7a4c..e127673 100644 (file)
@@ -191,8 +191,7 @@ void RuntimeDebugBuilder::createGPUPrinterT(PollyIRBuilder &Builder,
       if (Ty->getIntegerBitWidth() < 64)
         Val = Builder.CreateSExt(Val, Builder.getInt64Ty());
       else
-        assert(Ty->getIntegerBitWidth() &&
-               "Integer types larger 64 bit not supported");
+        llvm_unreachable("Integer types larger 64 bit not supported");
     } else if (auto PtTy = dyn_cast<PointerType>(Ty)) {
       if (PtTy->getAddressSpace() == 4) {
         // Pointers in constant address space are printed as strings