]> granicus.if.org Git - clang/commitdiff
Disambiguate an if statement.
authorDuncan Sands <baldrick@free.fr>
Tue, 21 Jul 2009 07:56:29 +0000 (07:56 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 21 Jul 2009 07:56:29 +0000 (07:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76547 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclObjC.cpp

index cd4c5c072e4e59364a185f657f7464ba9c9b1350..e8b6ef5cccc27216fc2e11317bd6cef11fe4919e 100644 (file)
@@ -613,11 +613,11 @@ void ObjCImplDecl::setClassInterface(ObjCInterfaceDecl *IFace) {
   ASTContext &Ctx = getASTContext();
 
   if (ObjCImplementationDecl *ImplD
-        = dyn_cast_or_null<ObjCImplementationDecl>(this))
+        = dyn_cast_or_null<ObjCImplementationDecl>(this)) {
     if (IFace)
       Ctx.setObjCImplementation(IFace, ImplD);
 
-  else if (ObjCCategoryImplDecl *ImplD =
+  else if (ObjCCategoryImplDecl *ImplD =
              dyn_cast_or_null<ObjCCategoryImplDecl>(this)) {
     if (ObjCCategoryDecl *CD = IFace->FindCategoryDeclaration(getIdentifier()))
       Ctx.setObjCImplementation(CD, ImplD);