Some declarations do not have a declaration context, like TranslationUnitDecl. Fix hasDeclContext() to not segfault on these nodes.
LG. You don't need pre-submit reviews for obvious crasher fixes, btw :)
Closed by commit rL220719 (authored by @sbenza).