summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/PR20038.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-12-29 23:49:00 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-12-29 23:49:00 +0000
commit608a24501c73ee2384464fa1c1703e28116d05f3 (patch)
treed99f56fc9d07ecdd2e2af2044f4ea3c8a566e04c /clang/test/CodeGenCXX/PR20038.cpp
parentb7373cd6398eee6a35d20a623bb6fb06f5414dc0 (diff)
downloadbcm5719-llvm-608a24501c73ee2384464fa1c1703e28116d05f3.tar.gz
bcm5719-llvm-608a24501c73ee2384464fa1c1703e28116d05f3.zip
Revert "DebugInfo: Generalize debug info location handling"
Asserting when building compiler-rt when using a GCC host compiler. Reverting while I investigate. This reverts commit r224941. llvm-svn: 224970
Diffstat (limited to 'clang/test/CodeGenCXX/PR20038.cpp')
-rw-r--r--clang/test/CodeGenCXX/PR20038.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/PR20038.cpp b/clang/test/CodeGenCXX/PR20038.cpp
index d838dbc5109..5bae285a83a 100644
--- a/clang/test/CodeGenCXX/PR20038.cpp
+++ b/clang/test/CodeGenCXX/PR20038.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple %itanium_abi_triple -g -mllvm -no-discriminators -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -triple %itanium_abi_triple -g -emit-llvm %s -o - | FileCheck %s
struct C {
~C();
@@ -8,7 +8,9 @@ extern bool b;
// CHECK: call {{.*}}, !dbg [[DTOR_CALL2_LOC:![0-9]*]]
// CHECK: [[FUN1:.*]] = {{.*}}; [ DW_TAG_subprogram ] {{.*}} [def] [fun1]
// CHECK: [[FUN2:.*]] = {{.*}}; [ DW_TAG_subprogram ] {{.*}} [def] [fun2]
-// CHECK: [[DTOR_CALL1_LOC]] = !{i32 [[@LINE+1]], i32 0, [[FUN1]], null}
+// CHECK: [[DTOR_CALL1_LOC]] = !{i32 [[@LINE+2]], i32 0, [[FUN1_BLOCK:.*]], null}
+// CHECK: [[FUN1_BLOCK]] = !{!"0xb{{[^,]*}}", {{[^,]*}}, [[FUN1]]}
void fun1() { b && (C(), 1); }
-// CHECK: [[DTOR_CALL2_LOC]] = !{i32 [[@LINE+1]], i32 0, [[FUN2]], null}
+// CHECK: [[DTOR_CALL2_LOC]] = !{i32 [[@LINE+2]], i32 0, [[FUN2_BLOCK1:.*]], null}
+// CHECK: [[FUN2_BLOCK1]] = !{!"0xb{{[^,]*}}", {{[^,]*}}, [[FUN2]]}
bool fun2() { return (C(), b) && 0; }
OpenPOWER on IntegriCloud