File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2971,6 +2971,8 @@ 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
+
2974
2976
if (D->hasExternalLexicalStorage () && !D->getDefinition ())
2975
2977
getExternalSource ()->CompleteType (const_cast <RecordDecl*>(D));
2976
2978
@@ -2992,7 +2994,7 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
2992
2994
Randstruct randstruct;
2993
2995
randstruct.reorganizeFields (*this , D);
2994
2996
bool NotToBeRandomized = D->getAttr <NoRandomizeLayoutAttr>() != nullptr ;
2995
-
2997
+
2996
2998
if (ShouldBeRandomized && NotToBeRandomized) {
2997
2999
Diag (D->getLocation (), diag::warn_randomize_attr_conflict);
2998
3000
}
You can’t perform that action at this time.
0 commit comments