summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/Passes.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-11-15 02:07:23 +0000
committerJordan Rose <jordan_rose@apple.com>2012-11-15 02:07:23 +0000
commit2d98b97e1077889f16ef1be5b3c0d801a1f7345e (patch)
treee9806ea6e46ca46b2b231c0b60804aa3881f8aff /llvm/lib/CodeGen/Passes.cpp
parente0b23b5198baa1499edaf0209c164e81007c4dfe (diff)
downloadbcm5719-llvm-2d98b97e1077889f16ef1be5b3c0d801a1f7345e.tar.gz
bcm5719-llvm-2d98b97e1077889f16ef1be5b3c0d801a1f7345e.zip
[analyzer] Make sure calls in synthesized functions have valid path locations.
We do this by using the "most recent" good location: if a synthesized function 'A' calls another function 'B', the path notes for the call to 'B' will be placed at the same location as the path note for calling 'A'. Similarly, the call to 'A' will have a note saying "Entered call from...", and now we just don't emit that (since the user doesn't have a body to look at anyway). Previously, we were doing this for the "Calling..." notes, but not for the "Entered call from..." or "Returning to caller". This caused a crash when the path entered and then exiting a call within a synthesized body. <rdar://problem/12657843> llvm-svn: 168019
Diffstat (limited to 'llvm/lib/CodeGen/Passes.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud