From: Duncan Sands Date: Tue, 21 Jul 2009 07:56:29 +0000 (+0000) Subject: Disambiguate an if statement. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98f2cca4b2731b5d43da7c1582dd443ecead658d;p=clang Disambiguate an if statement. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76547 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index cd4c5c072e..e8b6ef5ccc 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -613,11 +613,11 @@ void ObjCImplDecl::setClassInterface(ObjCInterfaceDecl *IFace) { ASTContext &Ctx = getASTContext(); if (ObjCImplementationDecl *ImplD - = dyn_cast_or_null(this)) + = dyn_cast_or_null(this)) { if (IFace) Ctx.setObjCImplementation(IFace, ImplD); - else if (ObjCCategoryImplDecl *ImplD = + } else if (ObjCCategoryImplDecl *ImplD = dyn_cast_or_null(this)) { if (ObjCCategoryDecl *CD = IFace->FindCategoryDeclaration(getIdentifier())) Ctx.setObjCImplementation(CD, ImplD);