Skip to content

Commit 6868ae2

Browse files
committed
[cxx-interop] Break when we find a linkage specification when traversing all decls in IRGen.
1 parent 5c4d626 commit 6868ae2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/IRGen/GenClangDecl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ void IRGenModule::emitClangDecl(const clang::Decl *decl) {
188188
if (isa<clang::TagDecl>(DC)) {
189189
break;
190190
}
191+
if (isa<clang::LinkageSpecDecl>(DC)) {
192+
break;
193+
}
191194
D = cast<const clang::Decl>(DC);
192195
}
193196
if (!GlobalClangDecls.insert(D->getCanonicalDecl()).second) {

0 commit comments

Comments
 (0)