[lldb][NFC] Remove unnecessary cast in ClangUserExpression

llvm-svn: 367989
This commit is contained in:
Raphael Isemann 2019-08-06 08:07:45 +00:00
parent c056dd1502
commit efe5fd16d1
1 changed files with 3 additions and 5 deletions

View File

@ -645,12 +645,10 @@ bool ClangUserExpression::Parse(DiagnosticManager &diagnostic_manager,
register_execution_unit = true;
}
if (register_execution_unit) {
llvm::cast<PersistentExpressionState>(
exe_ctx.GetTargetPtr()->GetPersistentExpressionStateForLanguage(
m_language))
if (register_execution_unit)
exe_ctx.GetTargetPtr()
->GetPersistentExpressionStateForLanguage(m_language)
->RegisterExecutionUnit(m_execution_unit_sp);
}
}
if (generate_debug_info) {