aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2013-05-13 10:21:19 +0000
committerLang Hames <lhames@gmail.com>2013-05-13 10:21:19 +0000
commitd26c93d3a8a484c5b42f06163ae5de787f0ac276 (patch)
tree7ae10e65892092069a7dc2818de9ef0702715efd /lib/Target
parentb99052ce4a75a3eac638afcd5171903514aa28e9 (diff)
downloadexternal_llvm-d26c93d3a8a484c5b42f06163ae5de787f0ac276.zip
external_llvm-d26c93d3a8a484c5b42f06163ae5de787f0ac276.tar.gz
external_llvm-d26c93d3a8a484c5b42f06163ae5de787f0ac276.tar.bz2
Correctly preserve the input chain for potential tailcall nodes whose
return values are bitcasts. The chain had previously been being clobbered with the entry node to the dag, which sometimes caused other code in the function to be erroneously deleted when tailcall optimization kicked in. <rdar://problem/13827621> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index fd77732..008edbe 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/lib/Target/ARM/ARMISelLowering.cpp
@@ -2147,7 +2147,7 @@ bool ARMTargetLowering::isUsedByReturnOnly(SDNode *N, SDValue &Chain) const {
Copy = *Copy->use_begin();
if (Copy->getOpcode() != ISD::CopyToReg || !Copy->hasNUsesOfValue(1, 0))
return false;
- Chain = Copy->getOperand(0);
+ TCChain = Copy->getOperand(0);
} else {
return false;
}