projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebfb9f4
)
In the future, these slabs can be null...
author
Chris Lattner
<sabre@nondot.org>
Wed, 19 Nov 2003 17:20:42 +0000
(17:20 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 19 Nov 2003 17:20:42 +0000
(17:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10083
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bytecode/Reader/ConstantReader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bytecode/Reader/ConstantReader.cpp
b/lib/Bytecode/Reader/ConstantReader.cpp
index 7d8859b9f8e7a49ee5e3db3965f9c513fb534669..a8386645dbadc1b6d6401ad437647400f9a77fa5 100644
(file)
--- a/
lib/Bytecode/Reader/ConstantReader.cpp
+++ b/
lib/Bytecode/Reader/ConstantReader.cpp
@@
-326,7
+326,8
@@
void BytecodeParser::ParseConstantPool(const unsigned char *&Buf,
// If we are reading a function constant table, make sure that we adjust
// the slot number to be the real global constant number.
//
- if (&Tab != &ModuleValues && Typ < ModuleValues.size())
+ if (&Tab != &ModuleValues && Typ < ModuleValues.size() &&
+ ModuleValues[Typ])
Slot += ModuleValues[Typ]->size();
ResolveReferencesToConstant(C, Slot);
}