summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/iCall.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-21 21:54:51 +0000
committerChris Lattner <sabre@nondot.org>2001-10-21 21:54:51 +0000
commitb57ac6f4bd6449f36cac92237f66f80488fd1e55 (patch)
treea479894dd5353416a4a1fcc9d847468693254329 /llvm/lib/VMCore/iCall.cpp
parent28a63e2972d685bfd5a59676ff58f673185c1cf1 (diff)
downloadbcm5719-llvm-b57ac6f4bd6449f36cac92237f66f80488fd1e55.tar.gz
bcm5719-llvm-b57ac6f4bd6449f36cac92237f66f80488fd1e55.zip
Fix erroneous assertion failure on the following code:
declare int "malloc"(...) ... %reg112 = call int (...) * %malloc( uint %cast1007 ) llvm-svn: 932
Diffstat (limited to 'llvm/lib/VMCore/iCall.cpp')
-rw-r--r--llvm/lib/VMCore/iCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/iCall.cpp b/llvm/lib/VMCore/iCall.cpp
index fc718d6887f..3f73933690d 100644
--- a/llvm/lib/VMCore/iCall.cpp
+++ b/llvm/lib/VMCore/iCall.cpp
@@ -26,7 +26,7 @@ CallInst::CallInst(Value *Meth, const vector<Value*> &params,
const MethodType::ParamTypes &PL = MTy->getParamTypes();
assert((params.size() == PL.size()) ||
- (MTy->isVarArg() && params.size() >= PL.size()-1) &&
+ (MTy->isVarArg() && params.size() >= PL.size()) &&
"Calling a function with bad signature");
for (unsigned i = 0; i < params.size(); i++)
Operands.push_back(Use(params[i], this));
OpenPOWER on IntegriCloud