Skip to content

Commit e1af06f

Browse files
Nixoncolejeff
authored andcommitted
Added declaration of Diagnostic(), receiving errors.
1 parent 938b5cf commit e1af06f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/AST/RecordLayoutBuilder.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2971,6 +2971,8 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
29712971
// not a complete definition (which is what isDefinition() tests)
29722972
// until we *finish* parsing the definition.
29732973

2974+
DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID);
2975+
29742976
if (D->hasExternalLexicalStorage() && !D->getDefinition())
29752977
getExternalSource()->CompleteType(const_cast<RecordDecl*>(D));
29762978

@@ -2992,7 +2994,7 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
29922994
Randstruct randstruct;
29932995
randstruct.reorganizeFields(*this, D);
29942996
bool NotToBeRandomized = D->getAttr<NoRandomizeLayoutAttr>() != nullptr;
2995-
2997+
29962998
if (ShouldBeRandomized && NotToBeRandomized) {
29972999
Diag(D->getLocation(), diag::warn_randomize_attr_conflict);
29983000
}

0 commit comments

Comments
 (0)