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 | fadf43c2aebf8d4e30088ff0a7f386b2dd04a073 (patch) | |
| tree | 9a5992b1575712083c4a3baf3e49c1122ad86a8c | |
| parent | e3b3d7a5e4ff7b1ef8027350b564847e40849a5d (diff) | |
| download | bcm5719-llvm-fadf43c2aebf8d4e30088ff0a7f386b2dd04a073.tar.gz bcm5719-llvm-fadf43c2aebf8d4e30088ff0a7f386b2dd04a073.zip | |
Fix -Asserts warning.
llvm-svn: 93731
| -rw-r--r-- | clang/tools/CIndex/CIndex.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp index 36919f70112..c5c7409ffcf 100644 --- a/clang/tools/CIndex/CIndex.cpp +++ b/clang/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: { |

