[lldb][modern-type-lookup] Fix crash when activating modern-type-lookup on Linux

There is no ClangModulesDeclVendor on Linux so that cast is triggering an assert.
Let's just remove it as it just casts the type to itself.

llvm-svn: 372974
This commit is contained in:
Raphael Isemann 2019-09-26 12:33:48 +00:00
parent b4e2d471f7
commit fe0de7e5e1
1 changed files with 1 additions and 2 deletions

View File

@ -108,8 +108,7 @@ void ClangASTSource::InstallASTContext(clang::ASTContext &ast_context,
} while (false); } while (false);
do { do {
auto *modules_decl_vendor = llvm::cast<ClangModulesDeclVendor>( auto *modules_decl_vendor = m_target->GetClangModulesDeclVendor();
m_target->GetClangModulesDeclVendor());
if (!modules_decl_vendor) if (!modules_decl_vendor)
break; break;