summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-09-26 12:33:48 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-09-26 12:33:48 +0000
commitb2a21d6f4beed27a377e84a168ee0788840ec06e (patch)
tree8eb2f5219fa13282d3726c6d3e9553648fefbbbd
parentdf2b29724985cb3da2d769adb11190c836342e4f (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@372974 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp b/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
index 3b5b49394..027010699 100644
--- a/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
+++ b/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
@@ -108,8 +108,7 @@ void ClangASTSource::InstallASTContext(clang::ASTContext &ast_context,
} while (false);
do {
- auto *modules_decl_vendor = llvm::cast<ClangModulesDeclVendor>(
- m_target->GetClangModulesDeclVendor());
+ auto *modules_decl_vendor = m_target->GetClangModulesDeclVendor();
if (!modules_decl_vendor)
break;