aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2010-12-21 17:16:58 +0000
committerStuart Hastings <stuart@apple.com>2010-12-21 17:16:58 +0000
commit56500edc7a2599e651d39df71a714e1e255ed96a (patch)
treea34482d6d84601e0b9dbf0e1ccde705edf6eb20b /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent1cd0f4637bfb8c93996b09baec8bf2bb220b74ca (diff)
downloadexternal_llvm-56500edc7a2599e651d39df71a714e1e255ed96a.zip
external_llvm-56500edc7a2599e651d39df71a714e1e255ed96a.tar.gz
external_llvm-56500edc7a2599e651d39df71a714e1e255ed96a.tar.bz2
Fix indentation, add comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index a60b871..a3fc3a3 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -253,13 +253,15 @@ void SelectionDAGLegalize::LegalizeDAG() {
/// FindCallEndFromCallStart - Given a chained node that is part of a call
/// sequence, find the CALLSEQ_END node that terminates the call sequence.
static SDNode *FindCallEndFromCallStart(SDNode *Node, int depth = 0) {
+ // Nested CALLSEQ_START/END constructs aren't yet legal,
+ // but we can DTRT and handle them correctly here.
if (Node->getOpcode() == ISD::CALLSEQ_START)
depth++;
else if (Node->getOpcode() == ISD::CALLSEQ_END) {
- depth--;
- if (depth == 0)
- return Node;
- }
+ depth--;
+ if (depth == 0)
+ return Node;
+ }
if (Node->use_empty())
return 0; // No CallSeqEnd