Skip to content

Commit

Permalink
[ClangExpressionDeclMap] Remove divergence from upstream lldb.
Browse files Browse the repository at this point in the history
<rdar://problem/36377967>
  • Loading branch information
Davide Italiano committed Oct 29, 2019
1 parent 0b66ff3 commit 5ec2781
Showing 1 changed file with 0 additions and 16 deletions.
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

0 comments on commit 5ec2781

Please sign in to comment.