diff options
author | Duncan Sands <baldrick@free.fr> | 2009-07-21 07:56:29 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-07-21 07:56:29 +0000 |
commit | 49c29ee43f0910c7edfe2d8a8f0a99a5ebc9b30d (patch) | |
tree | 3256df19f0f7a7e3074314302cf1c3a2eb226075 /clang/lib/AST/DeclObjC.cpp | |
parent | 8274ad5281d02515a66087f93d2d7ec0c7b516e2 (diff) | |
download | bcm5719-llvm-49c29ee43f0910c7edfe2d8a8f0a99a5ebc9b30d.tar.gz bcm5719-llvm-49c29ee43f0910c7edfe2d8a8f0a99a5ebc9b30d.zip |
Disambiguate an if statement.
llvm-svn: 76547
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index cd4c5c072e4..e8b6ef5cccc 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -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); |