Fix a failing assertion with -Wcast-align
When there is unknown type in a struct in code compiled with -Wcast-align, the compiler crashes due to clang::ASTContext::getASTRecordLayout() failing an assert. Added check that the RecordDecl is valid before calling getASTRecordLayout().
parent
e81ba283
Please register or sign in to comment