[cfe-commits] [cfe-dev][patch] Strange LLVM IR result on recursive type

Eli Friedman eli.friedman at gmail.com
Fri Nov 9 14:22:20 PST 2012


On Fri, Nov 9, 2012 at 1:05 AM, Jin Gu Kang <jaykang10 at imrc.kist.re.kr> wrote:
> Hi Eli,
>
> Thanks for your comment.
>
> I and my colleague tried to cut the cycle at struct type without returning null on ConvertType. This patch cuts cycle on just struct type with checking functions being processed. This method defers these struct types. I also send test case for this situation. I didn't have experience to make test case. Please check this test case and reivew the patch file. If there are something wrong, please let me know about that.

Your patch makes clang crash on the following:

struct S1 { int x; };
struct S2 { struct S1 (*g)(void); };
struct S2 g;

-Eli




More information about the cfe-commits mailing list