[Lldb-commits] [lldb] r247910 - Removed a needless cast to ClangExpressionVariable.

Sean Callanan via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 17 11:19:12 PDT 2015


Author: spyffe
Date: Thu Sep 17 13:19:12 2015
New Revision: 247910

URL: http://llvm.org/viewvc/llvm-project?rev=247910&view=rev
Log:
Removed a needless cast to ClangExpressionVariable.

Modified:
    lldb/trunk/source/Expression/Materializer.cpp

Modified: lldb/trunk/source/Expression/Materializer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/Materializer.cpp?rev=247910&r1=247909&r2=247910&view=diff
==============================================================================
--- lldb/trunk/source/Expression/Materializer.cpp (original)
+++ lldb/trunk/source/Expression/Materializer.cpp Thu Sep 17 13:19:12 2015
@@ -101,7 +101,7 @@ public:
         // Put the location of the spare memory into the live data of the ValueObject.
         
         m_persistent_variable_sp->m_live_sp = ValueObjectConstResult::Create (map.GetBestExecutionContextScope(),
-                                                                              llvm::cast<ClangExpressionVariable>(m_persistent_variable_sp.get())->GetTypeFromUser(),
+                                                                              m_persistent_variable_sp->GetCompilerType(),
                                                                               m_persistent_variable_sp->GetName(),
                                                                               mem,
                                                                               eAddressTypeLoad,




More information about the lldb-commits mailing list