mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-30 06:40:53 +00:00
Zap some completely ridiculous code. There's probably a miscompile here, but I don't really want to try to write a testcase involving an invoke returning a pointer to a varargs function...
llvm-svn: 145347
This commit is contained in:
parent
168778090c
commit
1d55ba306b
@ -960,7 +960,7 @@ Instruction *InstCombiner::visitCallSite(CallSite CS) {
|
||||
PointerType *PTy = cast<PointerType>(Callee->getType());
|
||||
FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
|
||||
if (FTy->isVarArg()) {
|
||||
int ix = FTy->getNumParams() + (isa<InvokeInst>(Callee) ? 2 : 0);
|
||||
int ix = FTy->getNumParams();
|
||||
// See if we can optimize any arguments passed through the varargs area of
|
||||
// the call.
|
||||
for (CallSite::arg_iterator I = CS.arg_begin()+FTy->getNumParams(),
|
||||
|
Loading…
Reference in New Issue
Block a user