diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-02-03 00:26:07 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-02-03 00:26:07 +0000 |
commit | 1df8cdc58876ac3beb14bfa3b3736ecbe87b8b59 (patch) | |
tree | 2d22438010f46c6ffbd7581496f648f6bc71b84b | |
parent | 7815f56b2274def4cc370514ca6fd783c16bdfde (diff) | |
download | bcm5719-llvm-1df8cdc58876ac3beb14bfa3b3736ecbe87b8b59.tar.gz bcm5719-llvm-1df8cdc58876ac3beb14bfa3b3736ecbe87b8b59.zip |
Narrow test further. Make bot and test happy.
llvm-svn: 149650
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 84209aa457f..5bdba9c0173 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -1108,7 +1108,9 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) { // 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; } |