Avoid MSVCRT assertion on comparing phdr iterators

llvm-svn: 171591
This commit is contained in:
Reid Kleckner 2013-01-05 02:21:42 +00:00
parent c892591596
commit e974bd1be9
1 changed files with 3 additions and 1 deletions

View File

@ -1213,7 +1213,9 @@ public:
ELFProgramHeader()
: Chunk<target_endianness, max_align, is64Bits>(
"elfphdr",
Chunk<target_endianness, max_align, is64Bits>::K_ELFProgramHeader) { }
Chunk<target_endianness, max_align, is64Bits>::K_ELFProgramHeader) {
resetProgramHeaders();
}
bool addSegment(Segment<target_endianness, max_align, is64Bits> *segment) {
Elf_Phdr *phdr = nullptr;