diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp index 16bb46a4b92b00..efc16fc98454a6 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp @@ -1624,22 +1624,6 @@ bool ClangExpressionDeclMap::GetVariableValue(VariableSP &var, return false; } - if (llvm::isa(var_clang_type.GetTypeSystem())) { -#ifdef CAN_IMPORT_SWIFT_CLANG_TYPES // 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( var_type->GetForwardCompilerType().GetTypeSystem());