diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-03-07 20:58:52 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-03-07 20:58:52 +0000 |
commit | 5a9a42778ab565913b6c1b66c4e15cfa80b7a610 (patch) | |
tree | eef9acefd604982d31af473855a1931e2651a2dc /clang/test/Modules/ModuleDebugInfo.cpp | |
parent | af97a282b9f4b5220c9a966feebcf34f322c727f (diff) | |
download | llvm-5a9a42778ab565913b6c1b66c4e15cfa80b7a610.zip llvm-5a9a42778ab565913b6c1b66c4e15cfa80b7a610.tar.gz llvm-5a9a42778ab565913b6c1b66c4e15cfa80b7a610.tar.bz2 |
Module Debugging: Fix a crash when emitting debug info for nested tag types
whose DeclContext is not yet complete by deferring their emission.
rdar://problem/24918680
llvm-svn: 262851
Diffstat (limited to 'clang/test/Modules/ModuleDebugInfo.cpp')
-rw-r--r-- | clang/test/Modules/ModuleDebugInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Modules/ModuleDebugInfo.cpp b/clang/test/Modules/ModuleDebugInfo.cpp index 82b558a..d0e304b 100644 --- a/clang/test/Modules/ModuleDebugInfo.cpp +++ b/clang/test/Modules/ModuleDebugInfo.cpp @@ -71,6 +71,13 @@ // CHECK-NOT: name: // CHECK-SAME: identifier: "_ZTS13TypedefStruct") +// CHECK: !DICompositeType(tag: DW_TAG_class_type, name: "Derived", +// CHECK-SAME: identifier: "_ZTS7Derived") +// CHECK: !DICompositeType(tag: DW_TAG_class_type, name: "B", scope: !"_ZTS7Derived", +// CHECK-SAME: elements: ![[B_MBRS:.*]], vtableHolder: !"_ZTS1A" +// CHECK: ![[B_MBRS]] = !{{{.*}}, ![[GET_PARENT:.*]]} +// CHECK: ![[GET_PARENT]] = !DISubprogram(name: "getParent" + // CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "FloatInstatiation" // no mangled name here yet. |