summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2017-05-03 00:41:43 +0000
committerSean Callanan <scallanan@apple.com>2017-05-03 00:41:43 +0000
commit40d067cd7f985e6a61a5a7b2650eee6d271bce0b (patch)
treeb6ec8aa3a6ca0505e09c49d1e54d7a5bcb4fb180 /lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
parente37391c4fe6d169b7c265a69d0291760dc159b4d (diff)
downloadbcm5719-llvm-40d067cd7f985e6a61a5a7b2650eee6d271bce0b.tar.gz
bcm5719-llvm-40d067cd7f985e6a61a5a7b2650eee6d271bce0b.zip
Fixed a bug where we did not properly use the complete versions of Objective-C classes.
Also added a test case, thanks to Greg Clayton. <rdar://problem/18913551> llvm-svn: 301993
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
index 3c3a2cd9c3f..7622791778b 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
@@ -348,7 +348,7 @@ void ClangASTSource::CompleteType(clang::ObjCInterfaceDecl *interface_decl) {
GetCompleteObjCInterface(original_iface_decl);
if (complete_iface_decl && (complete_iface_decl != original_iface_decl)) {
- m_ast_importer_sp->SetDeclOrigin(interface_decl, original_iface_decl);
+ m_ast_importer_sp->SetDeclOrigin(interface_decl, complete_iface_decl);
}
}
}
@@ -472,7 +472,7 @@ void ClangASTSource::FindExternalLexicalDecls(
original_decl = complete_iface_decl;
original_ctx = &complete_iface_decl->getASTContext();
- m_ast_importer_sp->SetDeclOrigin(context_decl, original_iface_decl);
+ m_ast_importer_sp->SetDeclOrigin(context_decl, complete_iface_decl);
}
}
OpenPOWER on IntegriCloud