diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-10-13 14:34:59 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-10-13 14:34:59 +0000 |
| commit | a785563692e59393c68f3a6311d544c384bcc1dd (patch) | |
| tree | 2a36266b55d8f3dc5fa01b6f3371b8d0c2276ff8 /llvm/lib/Bytecode/Reader/ConstantReader.cpp | |
| parent | 1dc3f3fdc0511f2f73afda59ec23eedc7d96585a (diff) | |
| download | bcm5719-llvm-a785563692e59393c68f3a6311d544c384bcc1dd.tar.gz bcm5719-llvm-a785563692e59393c68f3a6311d544c384bcc1dd.zip | |
Avoid calling getTypeSlot more
llvm-svn: 9077
Diffstat (limited to 'llvm/lib/Bytecode/Reader/ConstantReader.cpp')
| -rw-r--r-- | llvm/lib/Bytecode/Reader/ConstantReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/ConstantReader.cpp b/llvm/lib/Bytecode/Reader/ConstantReader.cpp index 2689362fea6..71afaf6ea61 100644 --- a/llvm/lib/Bytecode/Reader/ConstantReader.cpp +++ b/llvm/lib/Bytecode/Reader/ConstantReader.cpp @@ -350,7 +350,7 @@ void BytecodeParser::ParseConstantPool(const unsigned char *&Buf, Constant *C = parseConstantValue(Buf, EndBuf, Ty); assert(C && "parseConstantValue returned NULL!"); BCR_TRACE(4, "Read Constant: '" << *C << "'\n"); - unsigned Slot = insertValue(C, Tab); + unsigned Slot = insertValue(C, Typ, Tab); // If we are reading a function constant table, make sure that we adjust // the slot number to be the real global constant number. |

