]> granicus.if.org Git - clang/commit
Check for an invalid SourceLocation in clang_getCursor(). This avoids a possible...
authorTed Kremenek <kremenek@apple.com>
Thu, 29 Jul 2010 00:52:07 +0000 (00:52 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 29 Jul 2010 00:52:07 +0000 (00:52 +0000)
commita629ea42f6bc095190db2f3932b60a0be14f3d34
tree6db502782187c1a51bf3421e9499cfa04a71fa0e
parent281e9dc6ba6ff10bf910b0fc8898dff2a429f156
Check for an invalid SourceLocation in clang_getCursor().  This avoids a possible assertion failure in SourceManager in the call to Lexer::GetBeginningOfToken().  Fixes <rdar://problem/8244873>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109713 91177308-0d34-0410-b5e6-96231b3b80d8
tools/libclang/CIndex.cpp