diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-22 22:49:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-22 22:49:05 +0000 |
commit | 24ea74eb9a47b81c1557926acd83e0fbe6d7594e (patch) | |
tree | 603050bf899b7d3d180b19871d172daf2614520b /lib/Bytecode | |
parent | 5dfe767b872988c4f54348afd0d284104d5cd0a0 (diff) |
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
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/InstructionReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |