From cce4af160cade64cfd0fdda9fdb320a26d145ca8 Mon Sep 17 00:00:00 2001 From: Frederic Riss Date: Fri, 16 Mar 2018 22:12:22 +0000 Subject: [DWARFASTParserClang] Complete external record types before using them as a decl context. Summary: When in a gmodules-like debugging scenario, you can have a parent decl context that gets imported from an external AST. When this happens, we must be careful to complete this type before adding children to it, otherwise it sometimes results in a crash. Reviewers: clayborg, jingham Subscribers: aprantl, JDevlieghere, lldb-commits Differential Revision: https://reviews.llvm.org/D43592 llvm-svn: 327750 --- lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules/main.cpp') diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules/main.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules/main.cpp index aa401368517..588a3a8e01f 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules/main.cpp +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/gmodules/main.cpp @@ -1,5 +1,8 @@ +class Foo::Bar { int i = 123; }; + int main(int argc, const char * argv[]) { IntContainer test(42); + Foo::Bar bar; return 0; // break here } -- cgit v1.2.3