Hi,
Debug info of types missing in case of explicit casts.
Example :
typedef struct S { int i; } *T;
void foo(void *p) { ((T)(p))->i++; }
No DW_TAG_typedef, DW_TAG_structure_type and DW_TAG_member tags are available in debug text.
This patch fixes the same and produces tags irrespective of whether typedef is used or not.
Thanks!
Roll the DI variable into the if condition and sink the LimitedDebugInfo check into the DI function (at least I think that's how we are/should be doing this - keeping as much of the implementation details down in CGDebugInfo rather than up in the CodeGen callsites)