forked from OSchip/llvm-project
Fix grammar and correct comment - the debug information wasn't incorrect, rather suboptimal.
llvm-svn: 268211
This commit is contained in:
parent
22b3ad8630
commit
94a9ee65c6
|
@ -971,8 +971,8 @@ SDNode *SelectionDAG::FindNodeOrInsertPos(const FoldingSetNodeID &ID,
|
||||||
case ISD::Constant:
|
case ISD::Constant:
|
||||||
case ISD::ConstantFP:
|
case ISD::ConstantFP:
|
||||||
// Erase debug location from the node if the node is used at several
|
// Erase debug location from the node if the node is used at several
|
||||||
// different places to do not propagate one location to all uses as it
|
// different places. Do not propagate one location to all uses as it
|
||||||
// leads to incorrect debug info.
|
// will cause a worse single stepping debugging experience.
|
||||||
if (N->getDebugLoc() != DL)
|
if (N->getDebugLoc() != DL)
|
||||||
N->setDebugLoc(DebugLoc());
|
N->setDebugLoc(DebugLoc());
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue