A dbg.declare may not be in entry block, even if it is referring to an incoming argum...
authorDevang Patel <dpatel@apple.com>
Mon, 25 Apr 2011 16:33:52 +0000 (16:33 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 25 Apr 2011 16:33:52 +0000 (16:33 +0000)
commit06104e3743afc8988892bf66aab76e7fd5a885b3
treea58982a2da36d274a106641c8ad9afeb6005314e
parenta42a757176df18c0c930f519ea597c42c8873650
A dbg.declare may not be in entry block, even if it is referring to an incoming argument. However, It is appropriate to emit DBG_VALUE referring to this incoming argument in entry block in MachineFunction.

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