[Lldb-commits] [lldb] r367989 - [lldb][NFC] Remove unnecessary cast in ClangUserExpression
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 6 01:07:45 PDT 2019
Author: teemperor
Date: Tue Aug 6 01:07:45 2019
New Revision: 367989
URL: http://llvm.org/viewvc/llvm-project?rev=367989&view=rev
Log:
[lldb][NFC] Remove unnecessary cast in ClangUserExpression
Modified:
lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp?rev=367989&r1=367988&r2=367989&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp (original)
+++ lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp Tue Aug 6 01:07:45 2019
@@ -645,12 +645,10 @@ bool ClangUserExpression::Parse(Diagnost
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) {
More information about the lldb-commits
mailing list