diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-20 14:48:02 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-20 14:48:02 +0000 |
commit | 7b7f0883feebeddf961e0e38fd373923b0bad14a (patch) | |
tree | 4c4d2b49e443bec0551e5a83b3ea452a5cb14c15 /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | |
parent | 0f055d3f56041deaac90ae275ba33f0919cf6070 (diff) | |
download | bcm5719-llvm-7b7f0883feebeddf961e0e38fd373923b0bad14a.tar.gz bcm5719-llvm-7b7f0883feebeddf961e0e38fd373923b0bad14a.zip |
If a PHI node somehow has debug info, propogate it to the MachineInstr PHI.
llvm-svn: 101901
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index 704b63356a7..8ca25bb995a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -211,11 +211,11 @@ void FunctionLoweringInfo::set(const Function &fn, MachineFunction &mf, // Create Machine PHI nodes for LLVM PHI nodes, lowering them as // appropriate. - DebugLoc DL; for (BasicBlock::const_iterator I = BB->begin(); const PHINode *PN = dyn_cast<PHINode>(I); ++I) { if (PN->use_empty()) continue; + DebugLoc DL = PN->getDebugLoc(); unsigned PHIReg = ValueMap[PN]; assert(PHIReg && "PHI node does not have an assigned virtual register!"); |