summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/Materializer.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-09-08 22:23:39 +0000
committerSean Callanan <scallanan@apple.com>2015-09-08 22:23:39 +0000
commit3820e9cd17735e9a79a06e7587282d630ac4fe17 (patch)
tree616276a074b173a328e4748448d0d427996bc772 /lldb/source/Expression/Materializer.cpp
parent8cbeed3248f707ed3c067a9e53679f82a629633f (diff)
downloadbcm5719-llvm-3820e9cd17735e9a79a06e7587282d630ac4fe17.tar.gz
bcm5719-llvm-3820e9cd17735e9a79a06e7587282d630ac4fe17.zip
ExpressionVariable now uses llvm::cast() instead of As...() for RTTI.
As part of our overall switch from hand-rolling RTTI to using LLVM-compatible methods, I've done the same for ExpressionVariable. The main documentation for how to do this is in TypeSystem.h, so I've simply referred to that. llvm-svn: 247085
Diffstat (limited to 'lldb/source/Expression/Materializer.cpp')
-rw-r--r--lldb/source/Expression/Materializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/Materializer.cpp b/lldb/source/Expression/Materializer.cpp
index 71467d86870..afc39bcf408 100644
--- a/lldb/source/Expression/Materializer.cpp
+++ b/lldb/source/Expression/Materializer.cpp
@@ -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(),
- m_persistent_variable_sp->AsClangExpressionVariable()->GetTypeFromUser(),
+ llvm::cast<ClangExpressionVariable>(m_persistent_variable_sp.get())->GetTypeFromUser(),
m_persistent_variable_sp->GetName(),
mem,
eAddressTypeLoad,
@@ -232,7 +232,7 @@ public:
}
m_persistent_variable_sp->m_live_sp = ValueObjectConstResult::Create (map.GetBestExecutionContextScope (),
- m_persistent_variable_sp->AsClangExpressionVariable()->GetTypeFromUser(),
+ llvm::cast<ClangExpressionVariable>(m_persistent_variable_sp.get())->GetTypeFromUser(),
m_persistent_variable_sp->GetName(),
location,
eAddressTypeLoad,
OpenPOWER on IntegriCloud