summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/InstructionReader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-22 22:49:05 +0000
committerChris Lattner <sabre@nondot.org>2002-08-22 22:49:05 +0000
commitcd709cbf53cc33486f06e4e38f29fac87205def5 (patch)
tree1b428d677e5c0b3751272cc97faebd73cc1190ff /llvm/lib/Bytecode/Reader/InstructionReader.cpp
parent030effa42ca55f9bc37e542b8e06e8abf4ea730c (diff)
downloadbcm5719-llvm-cd709cbf53cc33486f06e4e38f29fac87205def5.tar.gz
bcm5719-llvm-cd709cbf53cc33486f06e4e38f29fac87205def5.zip
Load & StoreInst no longer derive from MemAccessInst, so we don't have
to handle indexing anymore llvm-svn: 3485
Diffstat (limited to 'llvm/lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/InstructionReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp
index 1f1485e2f2e..123a94c9dc5 100644
--- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud