Skip to content

Commit 16766b3

Browse files
committed
Fix ms type_info to be a 'class' type
It was brought up on #151277 that the patch changes type_info from class to struct. While I couldn't find a way to test/notice this, this patch changes it to a class. While I'm here, I am also removing unnecessary/against coding standard curley brackets.
1 parent 6099d0c commit 16766b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/include/clang/AST/ASTContext.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,9 +2394,8 @@ class ASTContext : public RefCountedBase<ASTContext> {
23942394
/// Retrieve the implicitly-predeclared 'struct type_info' declaration.
23952395
TagDecl *getMSTypeInfoTagDecl() const {
23962396
// Lazily create this type on demand - it's only needed for MS builds.
2397-
if (!MSTypeInfoTagDecl) {
2398-
MSTypeInfoTagDecl = buildImplicitRecord("type_info");
2399-
}
2397+
if (!MSTypeInfoTagDecl)
2398+
MSTypeInfoTagDecl = buildImplicitRecord("type_info", TagTypeKind::Class);
24002399
return MSTypeInfoTagDecl;
24012400
}
24022401

0 commit comments

Comments
 (0)