IdentifierInfo *FieldName) {
assert(AnonField->isAnonymousStructOrUnion());
Decl *NextDecl = AnonField->getNextDeclInContext();
- IndirectFieldDecl *IF = NULL;
- while (NextDecl && (IF = dyn_cast<IndirectFieldDecl>(NextDecl))) {
+ while (IndirectFieldDecl *IF =
+ dyn_cast_or_null<IndirectFieldDecl>(NextDecl)) {
if (FieldName && FieldName == IF->getAnonField()->getIdentifier())
return IF;
NextDecl = NextDecl->getNextDeclInContext();
void *g = &x;
int *h = &x;
-struct union_crash\r
-{\r
- union\r
- {\r
- };\r
-};\r
+struct union_crash
+{
+ union
+ {
+ };
+};
int test() {
int a[10];