[PATCH] D41575: [index] Return when DC is null in handleReference
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 25 15:48:17 PST 2017
MaskRay updated this revision to Diff 128149.
MaskRay added a comment.
DC -> Parent
Repository:
rC Clang
https://reviews.llvm.org/D41575
Files:
tools/libclang/CXIndexDataConsumer.cpp
Index: tools/libclang/CXIndexDataConsumer.cpp
===================================================================
--- tools/libclang/CXIndexDataConsumer.cpp
+++ tools/libclang/CXIndexDataConsumer.cpp
@@ -907,7 +907,7 @@
if (!CB.indexEntityReference)
return false;
- if (!D)
+ if (!D || !Parent)
return false;
if (Loc.isInvalid())
return false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41575.128149.patch
Type: text/x-patch
Size: 369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171225/eed8e179/attachment.bin>
More information about the cfe-commits
mailing list