[CUDA] Don't crash when trying to printf a non-scalar object.
authorJustin Lebar <jlebar@google.com>
Thu, 11 Feb 2016 02:00:52 +0000 (02:00 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 11 Feb 2016 02:00:52 +0000 (02:00 +0000)
commit9a2c0fbaf56af2d03933affa6f5a99c215911231
treef8e391ccf12ead9418e6e543276693d2eaa750ce
parent0f3474c1dcd0650696c1a2cdfdf57a3982a25e3c
[CUDA] Don't crash when trying to printf a non-scalar object.

Summary:
We can't do the right thing, since there's no right thing to do, but at
least we can not crash the compiler.

Reviewers: majnemer, rnk

Subscribers: cfe-commits, jhen, tra

Differential Revision: http://reviews.llvm.org/D17103

llvm-svn: 260479
clang/lib/CodeGen/CGCUDABuiltin.cpp
clang/test/CodeGenCUDA/printf-aggregate.cu [new file with mode: 0644]