diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-21 22:55:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-21 22:55:27 +0000 |
commit | dc23308820d50f1eaa39bf811fec7120519cbd9f (patch) | |
tree | 7d630d82d5200be959655e9a930fc3b0bc39cf1b /llvm/lib/Bytecode/Reader/Reader.cpp | |
parent | 10d7b85d5e152dd665f627a2b974854ae72aac4a (diff) | |
download | bcm5719-llvm-dc23308820d50f1eaa39bf811fec7120519cbd9f.tar.gz bcm5719-llvm-dc23308820d50f1eaa39bf811fec7120519cbd9f.zip |
Emit an obnoxious warning message for bytecode that includes load/store
instructions that use indexing. Convert them transparently into a pair
of instructions.
llvm-svn: 3431
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index bbffb1760ee..dd75d7f26f8 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -168,7 +168,8 @@ bool BytecodeParser::ParseBasicBlock(const uchar *&Buf, const uchar *EndBuf, while (Buf < EndBuf) { Instruction *Inst; - if (ParseInstruction(Buf, EndBuf, Inst)) { + if (ParseInstruction(Buf, EndBuf, Inst, + /*HACK*/BB)) { delete BB; return true; } |