summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-10 20:39:38 +0000
committerEric Christopher <echristo@gmail.com>2014-06-10 20:39:38 +0000
commitad3aa5eb5a0c5ccd11c9b7210d6d3b90004b05c9 (patch)
tree76d581976a28f2426b3dede49038564e261d1c88 /lib/CodeGen/SelectionDAG
parent4d9df32652055b46ca29fc3f6c609bacca3cd160 (diff)
downloadllvm-ad3aa5eb5a0c5ccd11c9b7210d6d3b90004b05c9.tar.gz
llvm-ad3aa5eb5a0c5ccd11c9b7210d6d3b90004b05c9.tar.bz2
llvm-ad3aa5eb5a0c5ccd11c9b7210d6d3b90004b05c9.tar.xz
Have isInTailCallPosition take the DAG so that we can use the
version of TargetLowering/Machine from there on the way to avoiding TargetMachine in TargetLowering. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index c568d3ebcf..92a3670e83 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -5530,7 +5530,7 @@ void SelectionDAGBuilder::LowerCallTo(ImmutableCallSite CS, SDValue Callee,
// Check if target-independent constraints permit a tail call here.
// Target-dependent constraints are checked within TLI->LowerCallTo.
- if (isTailCall && !isInTailCallPosition(CS, *TLI))
+ if (isTailCall && !isInTailCallPosition(CS, DAG))
isTailCall = false;
TargetLowering::CallLoweringInfo CLI(DAG);