summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-09-09 21:53:04 +0000
committerEric Christopher <echristo@apple.com>2011-09-09 21:53:04 +0000
commit65c5c9132f700a79619aa2bc339acc8896a8b48b (patch)
tree945fcdbd1ad1333fdb166f8c24a909c216ef5bc2 /clang/test
parent29cfe6c3683f2a80e28e3735bfb3955504d3cdd9 (diff)
downloadbcm5719-llvm-65c5c9132f700a79619aa2bc339acc8896a8b48b.tar.gz
bcm5719-llvm-65c5c9132f700a79619aa2bc339acc8896a8b48b.zip
Carry the debug information from single exit unified return block
along with the new insert point. Fixes PR10829 llvm-svn: 139416
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/debug-info-line3.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-info-line3.c b/clang/test/CodeGen/debug-info-line3.c
new file mode 100644
index 00000000000..645ffb9e748
--- /dev/null
+++ b/clang/test/CodeGen/debug-info-line3.c
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -g -S -emit-llvm %s -o - | FileCheck %s
+
+void func(char c, char* d)
+{
+ *d = c + 1;
+ return;
+
+
+
+
+
+
+}
+
+// CHECK: ret void, !dbg !19
+// CHECK: !19 = metadata !{i32 6,
OpenPOWER on IntegriCloud