We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc45a70 + 1c80f43 commit 70f48e4Copy full SHA for 70f48e4
lib/AST/ASTPrinter.cpp
@@ -3781,8 +3781,10 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
3781
const clang::Decl *ClangDecl = Ty->getDecl()->getClangDecl();
3782
if (ClangDecl && Options.CurrentModule) {
3783
for (auto *Redecl : ClangDecl->redecls()) {
3784
- clang::Module *ClangModule =
3785
- Redecl->getOwningModule()->getTopLevelModule();
+ auto *owningModule = Redecl->getOwningModule();
+ if (!owningModule)
3786
+ continue;
3787
+ clang::Module *ClangModule = owningModule->getTopLevelModule();
3788
if (!ClangModule)
3789
continue;
3790
0 commit comments