Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ClangExpressionDeclMap] Remove divergence from upstream lldb. #51

Merged
merged 1 commit into from
Oct 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1624,22 +1624,6 @@ bool ClangExpressionDeclMap::GetVariableValue(VariableSP &var,
return false;
}

if (llvm::isa<SwiftASTContext>(var_clang_type.GetTypeSystem())) {
#ifdef CAN_IMPORT_SWIFT_CLANG_TYPES // <rdar://problem/16102770> ASTImporter
// can't import Swift-generated types
// Try to get a Clang type for the Swift type.

if (!var_clang_type.IsImportedType(&var_clang_type)) {
if (log)
log->PutCString("Skipped a definition because it has a Swift type and "
"we can't get a Clang type for it");
return false;
}
#else
return false;
#endif
}

ClangASTContext *clang_ast = llvm::dyn_cast_or_null<ClangASTContext>(
var_type->GetForwardCompilerType().GetTypeSystem());

Expand Down