diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-04-01 19:57:01 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-04-01 19:57:01 +0000 |
commit | 8b1bca199897a6e3b7b849b5fa69e07b110c9ce0 (patch) | |
tree | 08cccb1b570b662f8af003ef5375031bf3bce1b8 /llvm/lib/CodeGen | |
parent | 8d68ebd42accc2948f71342a3acb14e1d92f0005 (diff) | |
download | bcm5719-llvm-8b1bca199897a6e3b7b849b5fa69e07b110c9ce0.tar.gz bcm5719-llvm-8b1bca199897a6e3b7b849b5fa69e07b110c9ce0.zip |
Add comments.
llvm-svn: 128730
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 94923530895..6785d6943e1 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -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()); |