File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2971,8 +2971,6 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
2971
2971
// not a complete definition (which is what isDefinition() tests)
2972
2972
// until we *finish* parsing the definition.
2973
2973
2974
- DiagnosticBuilder Diag (SourceLocation Loc, unsigned DiagID);
2975
-
2976
2974
if (D->hasExternalLexicalStorage () && !D->getDefinition ())
2977
2975
getExternalSource ()->CompleteType (const_cast <RecordDecl*>(D));
2978
2976
@@ -2993,7 +2991,8 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
2993
2991
bool NotToBeRandomized = D->getAttr <NoRandomizeLayoutAttr>() != nullptr ;
2994
2992
2995
2993
if (ShouldBeRandomized && NotToBeRandomized) {
2996
- Diag (D->getLocation (), diag::warn_randomize_attr_conflict);
2994
+ // Diag(D->getLocation(), diag::warn_randomize_attr_conflict);
2995
+ getDiagnostics ().Report (D->getLocation (), diag::warn_randomize_attr_conflict);
2997
2996
}
2998
2997
else if (ShouldBeRandomized) {
2999
2998
// A staging area to easily reorder the fields
You can’t perform that action at this time.
0 commit comments