Skip to content

Commit dee16c7

Browse files
committed
builds, but cannot compile. Cant find stdio.h
1 parent b1f11a3 commit dee16c7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/lib/AST/RecordLayoutBuilder.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2971,8 +2971,6 @@ 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-
29762974
if (D->hasExternalLexicalStorage() && !D->getDefinition())
29772975
getExternalSource()->CompleteType(const_cast<RecordDecl*>(D));
29782976

@@ -2993,7 +2991,8 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
29932991
bool NotToBeRandomized = D->getAttr<NoRandomizeLayoutAttr>() != nullptr;
29942992

29952993
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);
29972996
}
29982997
else if (ShouldBeRandomized) {
29992998
// A staging area to easily reorder the fields

0 commit comments

Comments
 (0)