summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-line.c
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-01-26 22:16:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-01-26 22:16:26 +0000
commit0a21d0da172d2e4e9e6d5d531811f8fb5ea5282a (patch)
tree53713cfbc608d33e51f2d954d967f9b30ad70074 /clang/test/CodeGen/debug-info-line.c
parent9f4b70dde051d36fe75b8e6a28253419484ecb88 (diff)
downloadbcm5719-llvm-0a21d0da172d2e4e9e6d5d531811f8fb5ea5282a.tar.gz
bcm5719-llvm-0a21d0da172d2e4e9e6d5d531811f8fb5ea5282a.zip
PR14566: Debug Info: avoid top level lexical blocks in functions
One of the gotchas (see changes to CodeGenFunction) was due to the fix in r139416 (for PR10829). This only worked previously because the top level lexical block would set the location to the end of the function, the debug location would be updated (as per r139416), the location would be set to the end of the function again (but that would no-op, since it was the same as the previous location), then the return instruction would be emitted using the debug location. Once the top level lexical block was no longer emitted, the end-of-function location change was causing the debug loc to be updated, regressing that bug. llvm-svn: 173593
Diffstat (limited to 'clang/test/CodeGen/debug-info-line.c')
-rw-r--r--clang/test/CodeGen/debug-info-line.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/CodeGen/debug-info-line.c b/clang/test/CodeGen/debug-info-line.c
index 9e6e9714aa4..8f869d04f05 100644
--- a/clang/test/CodeGen/debug-info-line.c
+++ b/clang/test/CodeGen/debug-info-line.c
@@ -1,9 +1,8 @@
// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
// Radar 8396182
-// There is only one lexical block, but we need a DILexicalBlock and two
-// DILexicalBlockFile to correctly represent file info. This means we have
-// two lexical blocks shown as the latter is also tagged as a lexical block.
+// There are no lexical blocks, but we need two DILexicalBlockFiles to
+// correctly represent file info.
int foo() {
int i = 1;
@@ -16,7 +15,6 @@ int foo() {
}
// CHECK: DW_TAG_lexical_block
-// CHECK: DW_TAG_lexical_block
// CHECK: !"m.h"
// CHECK: DW_TAG_lexical_block
// CHECK: !"m.c"
OpenPOWER on IntegriCloud