[Lldb-commits] [lldb] r144704 - /lldb/trunk/source/Expression/ClangASTSource.cpp

Sean Callanan scallanan at apple.com
Tue Nov 15 13:50:18 PST 2011


Author: spyffe
Date: Tue Nov 15 15:50:18 2011
New Revision: 144704

URL: http://llvm.org/viewvc/llvm-project?rev=144704&view=rev
Log:
Eliminated a compile warning by removing dyn_cast
where isa is good enough.

Modified:
    lldb/trunk/source/Expression/ClangASTSource.cpp

Modified: lldb/trunk/source/Expression/ClangASTSource.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangASTSource.cpp?rev=144704&r1=144703&r2=144704&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangASTSource.cpp (original)
+++ lldb/trunk/source/Expression/ClangASTSource.cpp Tue Nov 15 15:50:18 2011
@@ -311,7 +311,7 @@
                                      current_id);
         }
     }
-    else if (const ObjCInterfaceDecl *interface_decl = dyn_cast<ObjCInterfaceDecl>(context.m_decl_context))
+    else if (isa<ObjCInterfaceDecl>(context.m_decl_context))
     {
         FindObjCPropertyDecls(context);
     }





More information about the lldb-commits mailing list