From 5ec2781176a5b80c758a7c43fb910f517596f893 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Tue, 29 Oct 2019 13:59:18 -0700 Subject: [PATCH] [ClangExpressionDeclMap] Remove divergence from upstream lldb. --- .../Clang/ClangExpressionDeclMap.cpp | 16 ---------------- 1 file changed, 16 deletions(-) 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());