Skip to content

Commit 76b8af2

Browse files
authored
Merge pull request #51 from dcci/declmap
[ClangExpressionDeclMap] Remove divergence from upstream lldb.
2 parents 0b66ff3 + 5ec2781 commit 76b8af2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp

-16
Original file line numberDiff line numberDiff line change
@@ -1624,22 +1624,6 @@ bool ClangExpressionDeclMap::GetVariableValue(VariableSP &var,
16241624
return false;
16251625
}
16261626

1627-
if (llvm::isa<SwiftASTContext>(var_clang_type.GetTypeSystem())) {
1628-
#ifdef CAN_IMPORT_SWIFT_CLANG_TYPES // <rdar://problem/16102770> ASTImporter
1629-
// can't import Swift-generated types
1630-
// Try to get a Clang type for the Swift type.
1631-
1632-
if (!var_clang_type.IsImportedType(&var_clang_type)) {
1633-
if (log)
1634-
log->PutCString("Skipped a definition because it has a Swift type and "
1635-
"we can't get a Clang type for it");
1636-
return false;
1637-
}
1638-
#else
1639-
return false;
1640-
#endif
1641-
}
1642-
16431627
ClangASTContext *clang_ast = llvm::dyn_cast_or_null<ClangASTContext>(
16441628
var_type->GetForwardCompilerType().GetTypeSystem());
16451629

0 commit comments

Comments
 (0)