[polly] r330289 - [RuntimeDebugBuilder] Turn assert into an unreachable

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 18 16:03:55 PDT 2018


2018-04-18 15:18 GMT-05:00 Tobias Grosser via llvm-commits
<llvm-commits at lists.llvm.org>:
> --- 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");

This will crash with 64-bit integers.

Michael


More information about the llvm-commits mailing list