1
0
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:
Rafael Espindola 2015-02-17 20:07:28 +00:00
parent 9c032c96e5
commit c42165b816

View File

@ -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();