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.
1 parent 35f8ef5 commit 6a57220Copy full SHA for 6a57220
lib/IRGen/GenClangDecl.cpp
@@ -41,6 +41,8 @@ void IRGenModule::emitClangDecl(const clang::Decl *decl) {
41
if (!valueDecl || valueDecl->isExternallyVisible()) {
42
ClangCodeGen->HandleTopLevelDecl(
43
clang::DeclGroupRef(const_cast<clang::Decl*>(decl)));
44
+ if (!valueDecl)
45
+ return;
46
}
47
48
if (!GlobalClangDecls.insert(decl->getCanonicalDecl()).second)
0 commit comments