diff options
-rw-r--r-- | tools/CIndex/CIndex.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp index 36919f7011..c5c7409ffc 100644 --- a/tools/CIndex/CIndex.cpp +++ b/tools/CIndex/CIndex.cpp @@ -754,8 +754,7 @@ static Decl *getDeclFromExpr(Stmt *E) { 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: { |