summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseObjc.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-08-23 22:46:52 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-08-23 22:46:52 +0000
commit616d3e71c24e2e724d83a2f3f4d885310e6fe479 (patch)
treecbc2cc1bdcba8f7c7273d7813d33c227234187a5 /clang/lib/Parse/ParseObjc.cpp
parent82eb4ce47661d987735cf34ebb5289806f518c53 (diff)
downloadbcm5719-llvm-616d3e71c24e2e724d83a2f3f4d885310e6fe479.tar.gz
bcm5719-llvm-616d3e71c24e2e724d83a2f3f4d885310e6fe479.zip
Handling remaining rule for synthesize bitfields in
class extensions (nonfragile-abi2).For every class @interface and class extension @interface, if the last ivar is a bitfield of any type, then add an implicit `char :0` ivar to the end of that interface. llvm-svn: 111857
Diffstat (limited to 'clang/lib/Parse/ParseObjc.cpp')
-rw-r--r--clang/lib/Parse/ParseObjc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp
index aafe9996d4d..822d96b7c81 100644
--- a/clang/lib/Parse/ParseObjc.cpp
+++ b/clang/lib/Parse/ParseObjc.cpp
@@ -1097,7 +1097,7 @@ void Parser::ParseObjCClassInstanceVariables(Decl *interfaceDecl,
return Field;
}
} Callback(*this, interfaceDecl, visibility, AllIvarDecls);
-
+
// Parse all the comma separated declarators.
DeclSpec DS;
ParseStructDeclaration(DS, Callback);
@@ -1111,6 +1111,7 @@ void Parser::ParseObjCClassInstanceVariables(Decl *interfaceDecl,
}
}
SourceLocation RBraceLoc = MatchRHSPunctuation(tok::r_brace, LBraceLoc);
+ Actions.ActOnLastBitfield(RBraceLoc, interfaceDecl, AllIvarDecls);
// Call ActOnFields() even if we don't have any decls. This is useful
// for code rewriting tools that need to be aware of the empty list.
Actions.ActOnFields(getCurScope(), atLoc, interfaceDecl,
OpenPOWER on IntegriCloud