[polly] r330289 - [RuntimeDebugBuilder] Turn assert into an unreachable
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 18 22:42:02 PDT 2018
Project r330309.
Best,
Tobias
On Thu, Apr 19, 2018, at 01:03, Michael Kruse via llvm-commits wrote:
> 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
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list