mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
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:
1 parent
243f1f7315
commit
ca24d381e7
3 files changed
+19
-24
No files matched your search
@@ -15,10 +15,9 @@ CallInst::CallInst(Method *M, const vector<Value*> ¶ms,
|
||||
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();
|
||||
|
||||
Reference in new issue
Block a user