forked from OSchip/llvm-project
[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:
parent
b4e2d471f7
commit
fe0de7e5e1
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue