summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
diff options
context:
space:
mode:
authorAlex Langford <apl@fb.com>2019-08-13 19:40:36 +0000
committerAlex Langford <apl@fb.com>2019-08-13 19:40:36 +0000
commitbddab07d4a219642e70b6ab786ee8c54c8108968 (patch)
tree6c8857ed265593f7e3ab529cef92a793e1440e32 /lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
parent0fed4945d9056719e4f6c900ec392f35aca6a6f0 (diff)
downloadbcm5719-llvm-bddab07d4a219642e70b6ab786ee8c54c8108968.tar.gz
bcm5719-llvm-bddab07d4a219642e70b6ab786ee8c54c8108968.zip
[Symbol] Decouple clang from CompilerType
Summary: Ideally CompilerType would have no knowledge of clang or any individual TypeSystem. Decoupling clang is relatively straightforward. Differential Revision: https://reviews.llvm.org/D66102 llvm-svn: 368741
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
index b266b5553ed..55772e0898e 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
@@ -1288,8 +1288,10 @@ bool IRForTarget::MaybeHandleVariable(Value *llvm_value_ptr) {
if (value_decl == nullptr)
return false;
- lldb_private::CompilerType compiler_type(&value_decl->getASTContext(),
- value_decl->getType());
+ lldb_private::CompilerType compiler_type(
+ lldb_private::ClangASTContext::GetASTContext(
+ &value_decl->getASTContext()),
+ value_decl->getType().getAsOpaquePtr());
const Type *value_type = nullptr;
OpenPOWER on IntegriCloud