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
@@ -2996,7 +2994,8 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
2996
2994
bool NotToBeRandomized = D->getAttr <NoRandomizeLayoutAttr>() != nullptr ;
2997
2995
2998
2996
if (ShouldBeRandomized && NotToBeRandomized) {
2999
- Diag (D->getLocation (), diag::warn_randomize_attr_conflict);
2997
+ // Diag(D->getLocation(), diag::warn_randomize_attr_conflict);
2998
+ getDiagnostics ().Report (D->getLocation (), diag::warn_randomize_attr_conflict);
3000
2999
}
3001
3000
else if (ShouldBeRandomized) {
3002
3001
// A staging area to easily reorder the fields
You can’t perform that action at this time.
0 commit comments