[cfe-dev] assert in getCGRecordLayout
Jochen Wilhelmy
j.wilhelmy at arcor.de
Sat May 8 15:12:58 PDT 2010
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
More information about the cfe-dev
mailing list