@@ -733,6 +733,7 @@ void ASTDeclWriter::VisitObjCIvarDecl(ObjCIvarDecl *D) {
733
733
!D->isReferenced () &&
734
734
!D->isModulePrivate () &&
735
735
!D->getBitWidth () &&
736
+ !D->hasBoundsExpr () &&
736
737
!D->hasExtInfo () &&
737
738
D->getDeclName ())
738
739
AbbrevToUse = Writer.getDeclObjCIvarAbbrev ();
@@ -867,6 +868,7 @@ void ASTDeclWriter::VisitFieldDecl(FieldDecl *D) {
867
868
!D->isModulePrivate () &&
868
869
!D->getBitWidth () &&
869
870
!D->hasInClassInitializer () &&
871
+ !D->hasBoundsExpr () &&
870
872
!D->hasExtInfo () &&
871
873
!ObjCIvarDecl::classofKind (D->getKind ()) &&
872
874
!ObjCAtDefsFieldDecl::classofKind (D->getKind ()) &&
@@ -945,6 +947,7 @@ void ASTDeclWriter::VisitVarDecl(VarDecl *D) {
945
947
!D->isModulePrivate () &&
946
948
!needsAnonymousDeclarationNumber (D) &&
947
949
D->getDeclName ().getNameKind () == DeclarationName::Identifier &&
950
+ !D->hasBoundsExpr () &&
948
951
!D->hasExtInfo () &&
949
952
D->getFirstDecl () == D->getMostRecentDecl () &&
950
953
D->getInitStyle () == VarDecl::CInit &&
@@ -985,6 +988,7 @@ void ASTDeclWriter::VisitParmVarDecl(ParmVarDecl *D) {
985
988
// know are true of all PARM_VAR_DECLs.
986
989
if (D->getDeclContext () == D->getLexicalDeclContext () &&
987
990
!D->hasAttrs () &&
991
+ !D->hasBoundsExpr () &&
988
992
!D->hasExtInfo () &&
989
993
!D->isImplicit () &&
990
994
!D->isUsed (false ) &&
@@ -1240,6 +1244,7 @@ void ASTDeclWriter::VisitCXXMethodDecl(CXXMethodDecl *D) {
1240
1244
!D->hasAttrs () &&
1241
1245
!D->isTopLevelDeclInObjCContainer () &&
1242
1246
D->getDeclName ().getNameKind () == DeclarationName::Identifier &&
1247
+ !D->hasBoundsExpr () &&
1243
1248
!D->hasExtInfo () &&
1244
1249
!D->hasInheritedPrototype () &&
1245
1250
D->hasWrittenPrototype ())
@@ -1719,7 +1724,7 @@ void ASTWriter::WriteDeclAbbrevs() {
1719
1724
Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp::VBR, 6 )); // Type
1720
1725
// DeclaratorDecl
1721
1726
Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp::VBR, 6 )); // InnerStartLoc
1722
- Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp:: Fixed , 1 )); // hasBoundsExpr
1727
+ Abv->Add (BitCodeAbbrevOp (0 )); // hasBoundsExpr
1723
1728
Abv->Add (BitCodeAbbrevOp (0 )); // hasExtInfo
1724
1729
// FieldDecl
1725
1730
Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp::Fixed , 1 )); // isMutable
@@ -1885,7 +1890,7 @@ void ASTWriter::WriteDeclAbbrevs() {
1885
1890
Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp::VBR, 6 )); // Type
1886
1891
// DeclaratorDecl
1887
1892
Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp::VBR, 6 )); // InnerStartLoc
1888
- Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp:: Fixed , 1 )); // hasBoundsExpr
1893
+ Abv->Add (BitCodeAbbrevOp (0 )); // hasBoundsExpr
1889
1894
Abv->Add (BitCodeAbbrevOp (0 )); // hasExtInfo
1890
1895
// VarDecl
1891
1896
Abv->Add (BitCodeAbbrevOp (0 )); // StorageClass
@@ -1962,7 +1967,7 @@ void ASTWriter::WriteDeclAbbrevs() {
1962
1967
Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp::VBR, 6 )); // Type
1963
1968
// DeclaratorDecl
1964
1969
Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp::VBR, 6 )); // InnerStartLoc
1965
- Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp:: Fixed , 1 )); // hasBoundsExpr
1970
+ Abv->Add (BitCodeAbbrevOp (0 )); // hasBoundsExpr
1966
1971
Abv->Add (BitCodeAbbrevOp (0 )); // hasExtInfo
1967
1972
// VarDecl
1968
1973
Abv->Add (BitCodeAbbrevOp (BitCodeAbbrevOp::VBR, 6 )); // StorageClass
0 commit comments