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

Eric Holk eholk at cs.indiana.edu
Tue Nov 27 12:28:37 CST 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.cs.uiuc.edu/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: 644 bytes
Desc: not available
URL: <http://lists.cs.uiuc.edu/pipermail/llvm-commits/attachments/20121127/90cee16f/attachment.obj>


More information about the llvm-commits mailing list