From ef9c23f2812322ae5c5f3140bfbcf92629d7ff47 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 3 Oct 2001 14:53:21 +0000 Subject: * 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 --- lib/Bytecode/Reader/InstructionReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Bytecode/Reader/InstructionReader.cpp') diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index b6eec66491..5697b2620f 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/lib/Bytecode/Reader/InstructionReader.cpp @@ -197,9 +197,9 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf, if (M == 0) return failure(true); vector Params; - const MethodType::ParamTypes &PL = M->getType()->getParamTypes(); + const MethodType::ParamTypes &PL = M->getMethodType()->getParamTypes(); - if (!M->getType()->isVarArg()) { + if (!M->getMethodType()->isVarArg()) { MethodType::ParamTypes::const_iterator It = PL.begin(); switch (Raw.NumOperands) { -- cgit v1.2.3