mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Don't deference the section_end() iterator.
Hard to test given the undefined behavior nature. llvm-svn: 229530
This commit is contained in:
parent
9c032c96e5
commit
c42165b816
@ -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