This extends the verifier to catch three new errors:
- Missing DW_AT_type attributes for DW_TAG_formal_parameter, DW_TAG_variable and DW_TAG_array_type.
- Invalid references for DW_AT_type attribute values. Technically we already detect invalid references, but now we can be more specific.
- Valid references for DW_AT_type pointing to a non-type tag.
Have you tested this? I have a vague recollection that older versions of clang emitted (void) as no type. You may need to add an exception for DWARF2 or something.
Found it: rdar://problem/13291085 (For everyone else: it's a bugreport about exactly this)