From: David Blaikie Date: Mon, 3 Feb 2014 23:08:59 +0000 (+0000) Subject: DebugInfo: Fix for an improvement to DIBuilder to not emit {i32 0} for zero-length... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05212619ab0a8041fd3665b7feacf3db432e72fd;p=clang DebugInfo: Fix for an improvement to DIBuilder to not emit {i32 0} for zero-length arrays. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200722 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/debug-info-namespace.cpp b/test/CodeGenCXX/debug-info-namespace.cpp index 0fec2e4567..7f2c2897ee 100644 --- a/test/CodeGenCXX/debug-info-namespace.cpp +++ b/test/CodeGenCXX/debug-info-namespace.cpp @@ -68,7 +68,7 @@ int func(bool b) { // CHECK: [[M12]] = metadata !{i32 {{[0-9]*}}, metadata [[FUNC]], metadata [[M11]], i32 {{[0-9]*}}, metadata !"Y"} ; [ DW_TAG_imported_module ] // CHECK-GMLT: [[CU:![0-9]*]] = {{.*}}[[MODULES:![0-9]*]], metadata !""} ; [ DW_TAG_compile_unit ] -// CHECK-GMLT: [[MODULES]] = metadata !{i32 0} +// CHECK-GMLT: [[MODULES]] = metadata !{} // CHECK-NOLIMIT: ; [ DW_TAG_structure_type ] [bar] [line 6, {{.*}}] [def] [from ] diff --git a/test/CodeGenCXX/debug-info-template.cpp b/test/CodeGenCXX/debug-info-template.cpp index f58973bcce..9c22788136 100644 --- a/test/CodeGenCXX/debug-info-template.cpp +++ b/test/CodeGenCXX/debug-info-template.cpp @@ -1,7 +1,7 @@ // RUN: %clang -S -emit-llvm -target x86_64-unknown_unknown -g %s -o - -std=c++11 | FileCheck %s // CHECK: {{.*}}, i1 false, metadata !"", i32 0, metadata !{{[0-9]]*}}, metadata [[RETAIN:![0-9]*]], {{.*}} ; [ DW_TAG_compile_unit ] -// CHECK: [[EMPTY:![0-9]*]] = metadata !{i32 0} +// CHECK: [[EMPTY:![0-9]*]] = metadata !{} // CHECK: [[RETAIN]] = metadata !{metadata !{{[0-9]]*}}, metadata [[FOO:![0-9]*]],