Skip to content
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