[libclang] In clang_getCursorType, don't crash if the translation unit is not
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 16 Jan 2013 17:04:31 +0000 (17:04 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 16 Jan 2013 17:04:31 +0000 (17:04 +0000)
commitfbd7c2d3b2ae2447c933c55a9bdb07d4f01bd95e
tree740a7512dd4b6a37f8f0f43de8586f9c96ecd951
parent69987d5415f2260540be1cafa460362ad74ae849
[libclang] In clang_getCursorType, don't crash if the translation unit is not
set on the cursor; return a null type in such a case.

llvm-svn: 172625
clang/tools/libclang/CXType.cpp