aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-15 06:20:21 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-15 06:20:21 +0000
commit40f57ee2dab3ed3475fa584f83f05bd3c9ed4a00 (patch)
tree766217db75a93e5bca9371fdf6ef11362215713c /lib/AST/DeclObjC.cpp
parent21ee5707e6e59d982d2f2ae28e079c7ff46dc519 (diff)
Use Decl's isImplicit field to indicate whether an ObjCInterfaceDecl is 'ImplicitInterfaceDecl',
no need to store it in another field. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r--lib/AST/DeclObjC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index 766b673bde..d4e32a3b5f 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -654,7 +654,8 @@ ObjCInterfaceDecl(DeclContext *DC, SourceLocation atLoc, IdentifierInfo *Id,
TypeForDecl(0), SuperClass(0),
CategoryList(0), IvarList(0),
InitiallyForwardDecl(FD), ForwardDecl(FD),
- InternalInterface(isInternal), ExternallyCompleted(false) {
+ ExternallyCompleted(false) {
+ setImplicit(isInternal);
}
void ObjCInterfaceDecl::LoadExternalDefinition() const {