summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/retain-release-path-notes.m
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-04-12 00:44:17 +0000
committerJordan Rose <jordan_rose@apple.com>2013-04-12 00:44:17 +0000
commit526d93c55de364e5b457cbcd024f0cb7b47a6315 (patch)
tree0a055f4375db531e3afa1ef67040de05831ee292 /clang/test/Analysis/retain-release-path-notes.m
parentce781ae6ae6a403930cdc67c90e13d11af6764a4 (diff)
downloadbcm5719-llvm-526d93c55de364e5b457cbcd024f0cb7b47a6315.tar.gz
bcm5719-llvm-526d93c55de364e5b457cbcd024f0cb7b47a6315.zip
[analyzer] Show "Returning from ..." note at caller's depth, not callee's.
Before: 1. Calling 'foo' 2. Doing something interesting 3. Returning from 'foo' 4. Some kind of error here After: 1. Calling 'foo' 2. Doing something interesting 3. Returning from 'foo' 4. Some kind of error here The location of the note is already in the caller, not the callee, so this just brings the "depth" attribute in line with that. This only affects plist diagnostic consumers (i.e. Xcode). It's necessary for Xcode to associate the control flow arrows with the right stack frame. <rdar://problem/13634363> llvm-svn: 179351
Diffstat (limited to 'clang/test/Analysis/retain-release-path-notes.m')
-rw-r--r--clang/test/Analysis/retain-release-path-notes.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/retain-release-path-notes.m b/clang/test/Analysis/retain-release-path-notes.m
index ea943d1ca93..0e26e173360 100644
--- a/clang/test/Analysis/retain-release-path-notes.m
+++ b/clang/test/Analysis/retain-release-path-notes.m
@@ -4907,7 +4907,7 @@ static int Cond;
// CHECK-NEXT: </dict>
// CHECK-NEXT: </array>
// CHECK-NEXT: </array>
-// CHECK-NEXT: <key>depth</key><integer>1</integer>
+// CHECK-NEXT: <key>depth</key><integer>0</integer>
// CHECK-NEXT: <key>extended_message</key>
// CHECK-NEXT: <string>Returning from &apos;initX&apos;</string>
// CHECK-NEXT: <key>message</key>
@@ -5224,7 +5224,7 @@ static int Cond;
// CHECK-NEXT: </dict>
// CHECK-NEXT: </array>
// CHECK-NEXT: </array>
-// CHECK-NEXT: <key>depth</key><integer>1</integer>
+// CHECK-NEXT: <key>depth</key><integer>0</integer>
// CHECK-NEXT: <key>extended_message</key>
// CHECK-NEXT: <string>Returning from &apos;initY&apos;</string>
// CHECK-NEXT: <key>message</key>
OpenPOWER on IntegriCloud