[PATCH] D40104: [SelectionDAG] Consolidate (t|T)ransferDbgValues methods, NFC.

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 17:38:09 PST 2017


aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.

good catch!



================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAG.cpp:7047
   for (SDDbgValue *Dbg : GetDbgValues(FromNode)) {
-    if (Dbg->getKind() != SDDbgValue::SDNODE)
-      break;
+    // Just transfer the dbg value attached to \p From.
+    if (Dbg->getResNo() != From.getResNo())
----------------
the \p is probably overkill here


https://reviews.llvm.org/D40104





More information about the llvm-commits mailing list