[Lldb-commits] [lldb] r247615 - ClangExpressionDeclMap should only disable the Clang parser-specific state on
Sean Callanan via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 14 14:03:45 PDT 2015
Author: spyffe
Date: Mon Sep 14 16:03:44 2015
New Revision: 247615
URL: http://llvm.org/viewvc/llvm-project?rev=247615&view=rev
Log:
ClangExpressionDeclMap should only disable the Clang parser-specific state on
Clang persistent variables.
Modified:
lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=247615&r1=247614&r2=247615&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Mon Sep 14 16:03:44 2015
@@ -144,8 +144,8 @@ ClangExpressionDeclMap::DidParse()
++pvar_index)
{
ExpressionVariableSP pvar_sp(m_parser_vars->m_persistent_vars->GetVariableAtIndex(pvar_index));
- if (pvar_sp)
- llvm::cast<ClangExpressionVariable>(pvar_sp.get())->DisableParserVars(GetParserID());
+ if (ClangExpressionVariable *clang_var = llvm::dyn_cast<ClangExpressionVariable>(pvar_sp.get()))
+ clang_var->DisableParserVars(GetParserID());
}
DisableParserVars();
More information about the lldb-commits
mailing list