from the backtrace :
clang::TagType::getDecl (this=0x0)
so I think it is better to check that it is not null before using it.
Differential D39639
do not use valDecl if it is null sagi on Nov 5 2017, 1:45 AM. Authored by
Details
from the backtrace : clang::TagType::getDecl (this=0x0) so I think it is better to check that it is not null before using it.
Diff Detail Event TimelineComment Actions I'm not qualified to review this fix but i think it would be more compelling if accompanied by a test that fails without the fix. Comment Actions The test I wrote for D37639 is not great (nor is the code fixed I proposed). A Python-free test would be much better. Lots of the build bots (to the best of my knowledge) don't run Python tests. |