diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-09-10 20:11:44 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-09-10 20:11:44 +0000 | 
| commit | fe7b461376a82345bffce259aa1abfe911d56813 (patch) | |
| tree | 51314d1f6a8b4aefd76ebecab53b16811261cae1 /llvm/lib/VMCore/iCall.cpp | |
| parent | dd009521fe08fffb70d4d005ae2c86dd2c119dde (diff) | |
| download | bcm5719-llvm-fe7b461376a82345bffce259aa1abfe911d56813.tar.gz bcm5719-llvm-fe7b461376a82345bffce259aa1abfe911d56813.zip  | |
Use correct style casts
llvm-svn: 545
Diffstat (limited to 'llvm/lib/VMCore/iCall.cpp')
| -rw-r--r-- | llvm/lib/VMCore/iCall.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/iCall.cpp b/llvm/lib/VMCore/iCall.cpp index 22e238a2cfd..13f07d7f578 100644 --- a/llvm/lib/VMCore/iCall.cpp +++ b/llvm/lib/VMCore/iCall.cpp @@ -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();  | 

