summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-namespace.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-06-08 00:16:55 +0000
committerAdrian Prantl <aprantl@apple.com>2013-06-08 00:16:55 +0000
commit0ffce6ec99aee341ba2b2586eac862160f9fc004 (patch)
tree593f2d3594feb73ea08de809b2751b4e61055bcc /clang/test/CodeGenCXX/debug-info-namespace.cpp
parentae9d8e21d6ff01a2d35c7efc948f89fbc1a9cc92 (diff)
downloadbcm5719-llvm-0ffce6ec99aee341ba2b2586eac862160f9fc004.tar.gz
bcm5719-llvm-0ffce6ec99aee341ba2b2586eac862160f9fc004.zip
Debug info: An if condition now creates a lexical scope of its own.
Two variables with the same name declared in two if conditions in the same scope are no longer coalesced into one. rdar://problem/14024005 llvm-svn: 183597
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-namespace.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-namespace.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-namespace.cpp b/clang/test/CodeGenCXX/debug-info-namespace.cpp
index aa739ab9339..623005b0686 100644
--- a/clang/test/CodeGenCXX/debug-info-namespace.cpp
+++ b/clang/test/CodeGenCXX/debug-info-namespace.cpp
@@ -50,8 +50,9 @@ int func(bool b) {
// CHECK: [[M1]] = metadata !{i32 {{[0-9]*}}, metadata [[CTXT]], metadata [[NS]], i32 9} ; [ DW_TAG_imported_module ]
// CHECK: [[M2]] = metadata !{i32 {{[0-9]*}}, metadata [[CU]], metadata [[CTXT]], i32 12} ; [ DW_TAG_imported_module ]
// CHECK: [[M3]] = metadata !{i32 {{[0-9]*}}, metadata [[CU]], metadata [[CTXT]], i32 13, metadata !"E"} ; [ DW_TAG_imported_module ]
-// CHECK: [[M4]] = metadata !{i32 {{[0-9]*}}, metadata [[LEX:![0-9]*]], metadata [[NS]], i32 17} ; [ DW_TAG_imported_module ]
-// CHECK: [[LEX]] = metadata !{i32 {{[0-9]*}}, metadata [[FILE2]], metadata [[FUNC]], i32 16, i32 0, i32 0} ; [ DW_TAG_lexical_block ]
+// CHECK: [[M4]] = metadata !{i32 {{[0-9]*}}, metadata [[LEX2:![0-9]*]], metadata [[NS]], i32 17} ; [ DW_TAG_imported_module ]
+// CHECK: [[LEX2]] = metadata !{i32 {{[0-9]*}}, metadata [[FILE2]], metadata [[LEX1:![0-9]+]], i32 16, i32 0, i32 {{.*}}} ; [ DW_TAG_lexical_block ]
+// CHECK: [[LEX1]] = metadata !{i32 {{[0-9]*}}, metadata [[FILE2]], metadata [[FUNC]], i32 16, i32 0, i32 {{.*}}} ; [ DW_TAG_lexical_block ]
// CHECK: [[M5]] = metadata !{i32 {{[0-9]*}}, metadata [[FUNC]], metadata [[CTXT]], i32 20} ; [ DW_TAG_imported_module ]
// CHECK: [[M6]] = metadata !{i32 {{[0-9]*}}, metadata [[FUNC]], metadata [[FOO:![0-9]*]], i32 21} ; [ DW_TAG_imported_declaration ]
// CHECK: [[FOO]] {{.*}} ; [ DW_TAG_structure_type ] [foo] [line 5, size 0, align 0, offset 0] [fwd] [from ]
OpenPOWER on IntegriCloud