[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 8 12:51:51 PST 2005
Changes in directory llvm/lib/Target/X86:
X86ISelPattern.cpp updated: 1.15 -> 1.16
---
Log message:
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.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.15 llvm/lib/Target/X86/X86ISelPattern.cpp:1.16
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.15 Sat Jan 8 14:39:31 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Sat Jan 8 14:51:36 2005
@@ -208,7 +208,7 @@
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);
More information about the llvm-commits
mailing list