[llvm-commits] [llvm] r149650 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Jim Grosbach
grosbach at apple.com
Thu Feb 2 16:26:07 PST 2012
Author: grosbach
Date: Thu Feb 2 18:26:07 2012
New Revision: 149650
URL: http://llvm.org/viewvc/llvm-project?rev=149650&view=rev
Log:
Narrow test further. Make bot and test happy.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=149650&r1=149649&r2=149650&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Thu Feb 2 18:26:07 2012
@@ -1108,7 +1108,9 @@
// If both the callee and the cast type are varargs, we still have to make
// sure the number of fixed parameters are the same or we have the same
// ABI issues as if we introduce a varargs call.
- if (FT->getNumParams() !=
+ if (FT->isVarArg() &&
+ cast<FunctionType>(APTy->getElementType())->isVarArg() &&
+ FT->getNumParams() !=
cast<FunctionType>(APTy->getElementType())->getNumParams())
return false;
}
More information about the llvm-commits
mailing list