[polly] r330289 - [RuntimeDebugBuilder] Turn assert into an unreachable
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 18 13:18:44 PDT 2018
Author: grosser
Date: Wed Apr 18 13:18:43 2018
New Revision: 330289
URL: http://llvm.org/viewvc/llvm-project?rev=330289&view=rev
Log:
[RuntimeDebugBuilder] Turn assert into an unreachable
Modified:
polly/trunk/lib/CodeGen/RuntimeDebugBuilder.cpp
Modified: polly/trunk/lib/CodeGen/RuntimeDebugBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/RuntimeDebugBuilder.cpp?rev=330289&r1=330288&r2=330289&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/RuntimeDebugBuilder.cpp (original)
+++ polly/trunk/lib/CodeGen/RuntimeDebugBuilder.cpp Wed Apr 18 13:18:43 2018
@@ -191,8 +191,7 @@ void RuntimeDebugBuilder::createGPUPrint
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
More information about the llvm-commits
mailing list