summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-05-02 05:30:26 +0000
committerEric Christopher <echristo@gmail.com>2016-05-02 05:30:26 +0000
commit94a9ee65c63155c81527fb05cc61f1d5432dfec5 (patch)
treeea4b1c3500e818e814a03b9a6e4a20b1e58c3dea
parent22b3ad8630ddb96554ce38cbfbf19ca2617d3224 (diff)
downloadbcm5719-llvm-94a9ee65c63155c81527fb05cc61f1d5432dfec5.tar.gz
bcm5719-llvm-94a9ee65c63155c81527fb05cc61f1d5432dfec5.zip
Fix grammar and correct comment - the debug information wasn't incorrect, rather suboptimal.
llvm-svn: 268211
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 12aab9df2ae..5486414bee7 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -971,8 +971,8 @@ SDNode *SelectionDAG::FindNodeOrInsertPos(const FoldingSetNodeID &ID,
case ISD::Constant:
case ISD::ConstantFP:
// 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
- // leads to incorrect debug info.
+ // different places. Do not propagate one location to all uses as it
+ // will cause a worse single stepping debugging experience.
if (N->getDebugLoc() != DL)
N->setDebugLoc(DebugLoc());
break;
OpenPOWER on IntegriCloud