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 22c5b7a + 5b1fe56 commit 48e93b3Copy full SHA for 48e93b3
swift/extractor/visitors/DeclVisitor.cpp
@@ -115,7 +115,9 @@ codeql::PatternBindingDecl DeclVisitor::translatePatternBindingDecl(
115
116
std::optional<codeql::ConcreteVarDecl> DeclVisitor::translateVarDecl(const swift::VarDecl& decl) {
117
std::optional<codeql::ConcreteVarDecl> entry;
118
- if (decl.getDeclContext()->isLocalContext()) {
+ // We do not deduplicate variables from non-swift (PCM, clang modules) modules as the mangler
119
+ // crashes sometimes
120
+ if (decl.getDeclContext()->isLocalContext() || decl.getModuleContext()->isNonSwiftModule()) {
121
entry.emplace(dispatcher_.assignNewLabel(decl));
122
} else {
123
entry = createNamedEntry(decl);
0 commit comments