diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-01-18 17:52:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-01-18 17:52:42 +0000 |
commit | c81d718f60ccafb95efbc5985aecf42b3ff87c10 (patch) | |
tree | 875d2a6f0ea745632cce216eb89e986eb889babe | |
parent | 80febb9876b6de01fc688fb18511567c7af29a12 (diff) |
Fix -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93731 91177308-0d34-0410-b5e6-96231b3b80d8
-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: { |