commit | ee1d91a8301f91318e1aeed55c35ba5f6ca0b913 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Thu Apr 29 01:23:55 2010 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Thu Apr 29 01:23:55 2010 +0000 |
tree | d96cc6ff881aaf844f756521bd538b59b743d14e | |
parent | 8601a3d4decff0a380e059b037dabf71075497d3 [diff] [blame] |
Avoid emitting a dbg_value machineinstr that's not going to be inserted into entry block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102581 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 254a654..cb933d7 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -3709,6 +3709,8 @@ if (!Reg) Reg = FuncInfo.ValueMap[V]; + if (!Reg) + return; const TargetInstrInfo *TII = DAG.getTarget().getInstrInfo(); MachineInstrBuilder MIB = BuildMI(MF, getCurDebugLoc(),