mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
In the future, these slabs can be null...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10083 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ebfb9f487d
commit
c2f4b11552
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user