If the Address of a variable is an argument then treat the entire
authorEric Christopher <echristo@apple.com>
Fri, 24 Feb 2012 01:59:08 +0000 (01:59 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 24 Feb 2012 01:59:08 +0000 (01:59 +0000)
commit178606d92e636bb91ffbce3c4387ce059ed32953
tree4200537f66d2dae5a68ffb359b16eb686c843b9a
parent5b13ed1ac9745f21f30ddb07015cf27959c194c4
If the Address of a variable is an argument then treat the entire
variable declaration as an argument because we want that address
anyhow for our debug information.

This seems to fix rdar://9965111, at least we have more debug
information than before and from reading the assembly it appears
to be the correct location.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/DebugInfo/X86/block-capture.ll [new file with mode: 0644]