mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Don't deference the section_end() iterator.
Hard to test given the undefined behavior nature. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229530 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aaaad89266
commit
38c028b361
@ -214,6 +214,9 @@ RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) {
|
||||
StubMap Stubs;
|
||||
section_iterator RelocatedSection = SI->getRelocatedSection();
|
||||
|
||||
if (RelocatedSection == SE)
|
||||
continue;
|
||||
|
||||
relocation_iterator I = SI->relocation_begin();
|
||||
relocation_iterator E = SI->relocation_end();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user