diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-03-19 15:30:48 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-03-19 15:30:48 +0000 |
commit | 11d6cd318df1459ed57b26912d5c7a5cf2c2f091 (patch) | |
tree | 2af499c6b4a01625cc8ccacead48c0173560c99f /test/CodeGenCXX/debug-lambda-expressions.cpp | |
parent | 9a2f5d70dfb0eb739076d5bad1a779de9b201930 (diff) |
cindex.py: Handle NULL pointers when parsing translation units
The code inside cindex.py was comparing NULL pointer returned by
clang_parseTranslationUnit and clang_createTranslationUnit with None.
However, as illustrated by the two tests I've added, those conditions
were ineffective which resulted in assert triggering later on.
Instead, a pointer is now treated as a boolean value, a NULL pointer being
False.
Contributed-by: Xavier Deguillard <deguilx@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-lambda-expressions.cpp')
0 files changed, 0 insertions, 0 deletions