Add comments.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 1 Apr 2011 19:57:01 +0000 (19:57 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 1 Apr 2011 19:57:01 +0000 (19:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128730 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index 949235308955c5e86fae8185d83a10fd867a956e..6785d6943e17c13f2da7e19d819149f1911ccca9 100644 (file)
@@ -4929,9 +4929,11 @@ void SelectionDAGBuilder::LowerCallTo(ImmutableCallSite CS, SDValue Callee,
                          &ReturnValues[0], ReturnValues.size()));
   }
 
-  // As a special case, a null chain means that a tail call has been emitted and
-  // the DAG root is already updated.
+  // Assign order to nodes here. If the call does not produce a result, it won't
+  // be mapped to a SDNode and visit() will not assign it an order number.
   if (!Result.second.getNode()) {
+    // As a special case, a null chain means that a tail call has been emitted and
+    // the DAG root is already updated.
     HasTailCall = true;
     ++SDNodeOrder;
     AssignOrderingToNode(DAG.getRoot().getNode());