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 | c249e4855883d7b799db61edc839cbfaff50ae81 (patch) | |
tree | 9c3e8a4eba85db7251616cf6265271d36920fb55 /lib/CodeGen/SelectionDAG | |
parent | 8380c034b68d9d3768ee09b6fdc937696c93ee3d (diff) | |
download | external_llvm-c249e4855883d7b799db61edc839cbfaff50ae81.zip external_llvm-c249e4855883d7b799db61edc839cbfaff50ae81.tar.gz external_llvm-c249e4855883d7b799db61edc839cbfaff50ae81.tar.bz2 |
Add comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 9492353..6785d69 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/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()); |