From 24ea74eb9a47b81c1557926acd83e0fbe6d7594e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 22 Aug 2002 22:49:05 +0000 Subject: Load & StoreInst no longer derive from MemAccessInst, so we don't have to handle indexing anymore git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3485 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/InstructionReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Bytecode/Reader/InstructionReader.cpp') diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index 1f1485e2f2..123a94c9dc 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/lib/Bytecode/Reader/InstructionReader.cpp @@ -444,7 +444,7 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf, cerr << "WARNING: Bytecode contains load instruction with indices. " << "Replacing with getelementptr/load pair\n"; - const Type *ElType = StoreInst::getIndexedType(Raw.Ty, Idx); + const Type *ElType = GetElementPtrInst::getIndexedType(Raw.Ty, Idx); if (ElType == 0) return true; Ptr = new GetElementPtrInst(Ptr, Idx); -- cgit v1.2.3-18-g5258