From deeca6de08ff517ecc4db90598d67e23c930302f Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 27 Dec 2016 22:05:35 +0000 Subject: DebugInfo: Don't include size/alignment on class declarations This seems like it must've been a leftover by accident - no tests were backing it up & it doesn't make much sense to include size/alignment on class declarations (it'd only be on those declarations for which the definition was available - otherwise the size/alignment would not be known). llvm-svn: 290631 --- clang/test/CodeGenCXX/debug-info-class.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/test/CodeGenCXX/debug-info-class.cpp') diff --git a/clang/test/CodeGenCXX/debug-info-class.cpp b/clang/test/CodeGenCXX/debug-info-class.cpp index d03c0845dd6..d572eef68ab 100644 --- a/clang/test/CodeGenCXX/debug-info-class.cpp +++ b/clang/test/CodeGenCXX/debug-info-class.cpp @@ -122,6 +122,7 @@ int main(int argc, char **argv) { // CHECK: [[C_DTOR]] = !DISubprogram(name: "~C" // CHECK: [[D:![0-9]+]] = !DICompositeType(tag: DW_TAG_structure_type, name: "D" +// CHECK-NOT: size: // CHECK-SAME: DIFlagFwdDecl // CHECK-SAME: identifier: "_ZTS1D" // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "E" -- cgit v1.2.3