summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/iCall.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-10 20:11:44 +0000
committerChris Lattner <sabre@nondot.org>2001-09-10 20:11:44 +0000
commitfe7b461376a82345bffce259aa1abfe911d56813 (patch)
tree51314d1f6a8b4aefd76ebecab53b16811261cae1 /llvm/lib/VMCore/iCall.cpp
parentdd009521fe08fffb70d4d005ae2c86dd2c119dde (diff)
downloadbcm5719-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.cpp5
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*> &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();
OpenPOWER on IntegriCloud