Use correct style casts

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@545 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner committed 2001-09-10 20:11:44 +00:00
1 parent 243f1f7315
commit ca24d381e7
3 files changed
+19 -24

No files matched your search

+2 -3
View File
@@ -15,10 +15,9 @@ CallInst::CallInst(Method *M, const vector<Value*> &params,
Operands.reserve(1+params.size());
Operands.push_back(Use(M, this));
const MethodType* MT = M->getMethodType();
const MethodType::ParamTypes &PL = MT->getParamTypes();
const MethodType::ParamTypes &PL = M->getType()->getParamTypes();
assert((params.size() == PL.size()) ||
(MT->isVarArg() && params.size() > PL.size()) &&
(M->getType()->isVarArg() && params.size() > PL.size()) &&
"Calling a function with bad signature");
#ifndef NDEBUG
MethodType::ParamTypes::const_iterator It = PL.begin();