diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-01-03 23:34:30 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-01-03 23:34:30 +0000 |
commit | d22d777d6d1383ebc61e5e6814607955cab41266 (patch) | |
tree | 1c692a06fe3780961db9c4db65f83516c0260473 /test/CodeGenObjC/arc-linetable.m | |
parent | 09e3c5f7eb4326ec41fcaeb50f62e261072e8222 (diff) | |
download | clang-d22d777d6d1383ebc61e5e6814607955cab41266.tar.gz |
Debug info: Ensure that the last stop point in a function is still within
the lexical block formed by the compound statement that is the function
body.
rdar://problem/15010825
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/arc-linetable.m')
-rw-r--r-- | test/CodeGenObjC/arc-linetable.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGenObjC/arc-linetable.m b/test/CodeGenObjC/arc-linetable.m index eac91f1889..34b7d7640f 100644 --- a/test/CodeGenObjC/arc-linetable.m +++ b/test/CodeGenObjC/arc-linetable.m @@ -47,8 +47,11 @@ @implementation AppDelegate : NSObject +// CHECK: ![[TESTNOSIDEEFFECT:.*]] = {{.*}}[ DW_TAG_subprogram ] [line [[@LINE+1]]] [local] [def] [-[AppDelegate testNoSideEffect:]] - (int)testNoSideEffect:(NSString *)foo { - // CHECK: ![[ARC1]] = metadata !{i32 [[@LINE+1]], i32 0, metadata !{{.*}}, null} + // CHECK: ![[COMPOUND_STMT:.*]] = metadata !{i32 786443, metadata !{{.*}}, metadata ![[TESTNOSIDEEFFECT]], i32 [[@LINE-1]], i32 0, i32 0} ; [ DW_TAG_lexical_block ] + int x = 1; + // CHECK: ![[ARC1]] = metadata !{i32 [[@LINE+1]], i32 0, metadata ![[COMPOUND_STMT]], null} return 1; // Return expression // CHECK: ![[RET1]] = metadata !{i32 [[@LINE+1]], i32 0, metadata !{{.*}}, null} } // Cleanup + Ret |