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 | f0d9273af7079c3057d62689babf8e61cbbc3eaa (patch) | |
tree | a7b825ef74ef915b081b0d9173abf959be3f9c0d /lib/Bytecode/Reader/ConstantReader.cpp | |
parent | 1825009ba8133992c103102556d32a25aa524d0c (diff) |
Avoid calling getTypeSlot more
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9077 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/ConstantReader.cpp')
-rw-r--r-- | lib/Bytecode/Reader/ConstantReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index 2689362fea..71afaf6ea6 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/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. |