aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-08 20:51:36 +0000
committerChris Lattner <sabre@nondot.org>2005-01-08 20:51:36 +0000
commitb0802651bf2d17f4ee274cea7264e89bff404ce9 (patch)
treea364adee85a68fdee03190ea7e4b2b7f57bf2f9d
parent6cc70ef0f90e888a822c559dfe6c12fae005369a (diff)
Okay 15th time is the charm. Looking at the vector size is useless as it
gets clobbered by a previous statement. This fixes all calls finally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19399 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86ISelPattern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp
index 8484b8a9c6..54d9a6d0c2 100644
--- a/lib/Target/X86/X86ISelPattern.cpp
+++ b/lib/Target/X86/X86ISelPattern.cpp
@@ -208,7 +208,7 @@ X86TargetLowering::LowerCallTo(SDOperand Chain,
RetVals.push_back(MVT::Other);
SDOperand TheCall = SDOperand(DAG.getCall(RetVals, Chain, Callee), 0);
- Chain = TheCall.getValue(RetVals.size()+1);
+ Chain = TheCall.getValue(RetTyVT != MVT::isVoid);
Chain = DAG.getNode(ISD::ADJCALLSTACKUP, MVT::Other, Chain,
DAG.getConstant(NumBytes, getPointerTy()));
return std::make_pair(TheCall, Chain);