diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-21 21:54:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-21 21:54:51 +0000 |
commit | bfabd8877dce8e5942e1cddd9e945dc48e2276cd (patch) | |
tree | 443852e3c5314744fdc340180945f9369b365bf4 /lib | |
parent | 23192ebe953bb50c09dca6de2b30681a044b2411 (diff) | |
download | external_llvm-bfabd8877dce8e5942e1cddd9e945dc48e2276cd.zip external_llvm-bfabd8877dce8e5942e1cddd9e945dc48e2276cd.tar.gz external_llvm-bfabd8877dce8e5942e1cddd9e945dc48e2276cd.tar.bz2 |
Fix erroneous assertion failure on the following code:
declare int "malloc"(...)
...
%reg112 = call int (...) * %malloc( uint %cast1007 )
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/iCall.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/iCall.cpp b/lib/VMCore/iCall.cpp index fc718d6..3f73933 100644 --- a/lib/VMCore/iCall.cpp +++ b/lib/VMCore/iCall.cpp @@ -26,7 +26,7 @@ CallInst::CallInst(Value *Meth, const vector<Value*> ¶ms, 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)); |