aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-04-25 16:33:52 +0000
committerDevang Patel <dpatel@apple.com>2011-04-25 16:33:52 +0000
commit734f2218ac4f8488d075ea8a5b6fb09694c5ad86 (patch)
treef4c1fd1db69149d0da85b26a2921ed9543dfaf58 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parentb90f5185b63ac387e35ba8321a145b137fd4c649 (diff)
downloadllvm-734f2218ac4f8488d075ea8a5b6fb09694c5ad86.zip
llvm-734f2218ac4f8488d075ea8a5b6fb09694c5ad86.tar.gz
llvm-734f2218ac4f8488d075ea8a5b6fb09694c5ad86.tar.bz2
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.
llvm-svn: 130129
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 4178a4a..b02a7b6 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -4033,10 +4033,6 @@ SelectionDAGBuilder::EmitFuncArgumentDbgValue(const Value *V, MDNode *Variable,
if (DV.isInlinedFnArgument(MF.getFunction()))
return false;
- MachineBasicBlock *MBB = FuncInfo.MBB;
- if (MBB != &MF.front())
- return false;
-
unsigned Reg = 0;
if (Arg->hasByValAttr()) {
// Byval arguments' frame index is recorded during argument lowering.