diff options
| author | Devang Patel <dpatel@apple.com> | 2011-04-25 16:33:52 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-04-25 16:33:52 +0000 |
| commit | 734f2218ac4f8488d075ea8a5b6fb09694c5ad86 (patch) | |
| tree | f4c1fd1db69149d0da85b26a2921ed9543dfaf58 /llvm/lib/CodeGen/SelectionDAG | |
| parent | b90f5185b63ac387e35ba8321a145b137fd4c649 (diff) | |
| download | bcm5719-llvm-734f2218ac4f8488d075ea8a5b6fb09694c5ad86.tar.gz bcm5719-llvm-734f2218ac4f8488d075ea8a5b6fb09694c5ad86.zip | |
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')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 4178a4a350a..b02a7b66c49 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. |

