[llvm-commits] NVPTX: Handle struct literal arguments without crashing

Eric Holk eholk at cs.indiana.edu
Tue Nov 27 10:28:37 PST 2012


I found that compiling functions using struct literals would trip an assert
in StructType::getName. This patch checks that the struct isn't a literal
struct before calling getName and allows it to generate code successfully.

Let me know if there are questions, comments, or anything else needed from
me.

-Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121127/90cee16f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nvptx-struct-literal.patch
Type: application/octet-stream
Size: 645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121127/90cee16f/attachment.obj>


More information about the llvm-commits mailing list