aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/iCall.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-03 14:53:21 +0000
committerChris Lattner <sabre@nondot.org>2001-10-03 14:53:21 +0000
commitef9c23f2812322ae5c5f3140bfbcf92629d7ff47 (patch)
treec87db095661379f13a39bf1dee52af9ded6a23a3 /lib/VMCore/iCall.cpp
parentda257162968820a7fd77a9df44e3f72090a7f13a (diff)
* Both Method & GlobalVariable now subclass GlobalValue
* ConstPoolPointerReference now represents a pointer to a GlobalValue * Methods name references are now explicit pointers to methods * Rename Value::GlobalVal to Value::GlobalVariableVal to avoid confusion git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/iCall.cpp')
-rw-r--r--lib/VMCore/iCall.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/iCall.cpp b/lib/VMCore/iCall.cpp
index 13f07d7f57..f739730b67 100644
--- a/lib/VMCore/iCall.cpp
+++ b/lib/VMCore/iCall.cpp
@@ -15,9 +15,9 @@ CallInst::CallInst(Method *M, const vector<Value*> &params,
Operands.reserve(1+params.size());
Operands.push_back(Use(M, this));
- const MethodType::ParamTypes &PL = M->getType()->getParamTypes();
+ const MethodType::ParamTypes &PL = M->getMethodType()->getParamTypes();
assert((params.size() == PL.size()) ||
- (M->getType()->isVarArg() && params.size() > PL.size()) &&
+ (M->getMethodType()->isVarArg() && params.size() > PL.size()) &&
"Calling a function with bad signature");
#ifndef NDEBUG
MethodType::ParamTypes::const_iterator It = PL.begin();