summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp
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/inlining/eager-reclamation-path-notes.cpp
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/inlining/eager-reclamation-path-notes.cpp')
-rw-r--r--clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp b/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp
index 08c84695ccb..05411bbc777 100644
--- a/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp
+++ b/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp
@@ -202,7 +202,7 @@ int memberCallBaseDisappears() {
// 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;getNullWrapper&apos;</string>
// CHECK-NEXT: <key>message</key>
OpenPOWER on IntegriCloud