Hi!
If I do
codeGenTypes.getCGRecordLayout(recordDecl);
to get the layout of a struct (I derive from clang::CodeGenerator and
do it in HandleTopLevelDecl)
then getCGRecordLayout asserts if the recordDecl contains
an unknown type. Is there a possibility to find out if recordDecl
is valid? One solution could be that getCGRecordLayout returns
a pointer that can be NULL on failure.
-Jochen