[cfe-commits] r76547 - /cfe/trunk/lib/AST/DeclObjC.cpp

Duncan Sands baldrick at free.fr
Tue Jul 21 00:56:33 PDT 2009


Author: baldrick
Date: Tue Jul 21 02:56:29 2009
New Revision: 76547

URL: http://llvm.org/viewvc/llvm-project?rev=76547&view=rev
Log:
Disambiguate an if statement.

Modified:
    cfe/trunk/lib/AST/DeclObjC.cpp

Modified: cfe/trunk/lib/AST/DeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclObjC.cpp?rev=76547&r1=76546&r2=76547&view=diff

==============================================================================
--- cfe/trunk/lib/AST/DeclObjC.cpp (original)
+++ cfe/trunk/lib/AST/DeclObjC.cpp Tue Jul 21 02:56:29 2009
@@ -613,11 +613,11 @@
   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);





More information about the cfe-commits mailing list