[cfe-commits] r93731 - /cfe/trunk/tools/CIndex/CIndex.cpp

Daniel Dunbar daniel at zuster.org
Mon Jan 18 09:52:43 PST 2010


Author: ddunbar
Date: Mon Jan 18 11:52:42 2010
New Revision: 93731

URL: http://llvm.org/viewvc/llvm-project?rev=93731&view=rev
Log:
Fix -Asserts warning.

Modified:
    cfe/trunk/tools/CIndex/CIndex.cpp

Modified: cfe/trunk/tools/CIndex/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndex.cpp?rev=93731&r1=93730&r2=93731&view=diff

==============================================================================
--- cfe/trunk/tools/CIndex/CIndex.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndex.cpp Mon Jan 18 11:52:42 2010
@@ -754,8 +754,7 @@
 
 extern "C" {
 CXString clang_getCursorSpelling(CXCursor C) {
-  NamedDecl *ND = static_cast<NamedDecl *>(getCursorDecl(C));
-  assert(ND && "CXCursor has null decl");
+  assert(getCursorDecl(C) && "CXCursor has null decl");
   if (clang_isReference(C.kind)) {
     switch (C.kind) {
     case CXCursor_ObjCSuperClassRef: {





More information about the cfe-commits mailing list