[PATCH] D17103: [CUDA] Don't crash when trying to printf a non-scalar object.

Hal Finkel via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 10 15:50:52 PST 2016


hfinkel added a comment.

In http://reviews.llvm.org/D17103#349274, @jlebar wrote:

> > Ultimately, Sema should be responsible for rejecting this, correct?
>
>
> I guess this is the part I'm unsure of.  If it's legal to pass a struct to printf in regular C++ (seems to be?), I'd guess it should be legal in CUDA, too?  I'm just not sure what it's supposed to do (in either case).


Is this because PTX does not have a way to represent va_arg structs?


http://reviews.llvm.org/D17103





More information about the cfe-commits mailing list