summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit83cce8e7ab8d5577ea8b8077a22f89e5ac4d645c (patch)
tree191465663bc673f9dbb4b3737235b1bd88eda8a2 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent3b8af41a3e676412ab164adbbc693717e0ac1413 (diff)
downloadbcm5719-llvm-83cce8e7ab8d5577ea8b8077a22f89e5ac4d645c.tar.gz
bcm5719-llvm-83cce8e7ab8d5577ea8b8077a22f89e5ac4d645c.zip
Fix indentation, add comment.
llvm-svn: 122345
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index a60b8719372..a3fc3a35529 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud