This is a follow-up to r310706. This change has been recommended by
Bruno Cardoso Lopes and Richard Smith.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310829
91177308-0d34-0410-b5e6-
96231b3b80d8
AddMsStructLayoutForRecord(RD);
}
}
+ New->setLexicalDeclContext(CurContext);
return New;
};
// comparison.
SkipBody->CheckSameAsPrevious = true;
SkipBody->New = createTagFromNewDecl();
- SkipBody->New->setLexicalDeclContext(CurContext);
SkipBody->Previous = Hidden;
} else {
SkipBody->ShouldSkip = true;