[lld] r249955 - ELF2: Remove ProgramHeader class and use Elf_Phdr directly. NFC.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 11 07:54:58 PDT 2015
Actually,using any set on pointers (on trunk) looks like a bug. The
vector can be resized and the pointers invalidated, no?
You probably need a set on the indexes.
On 11 October 2015 at 10:30, Rafael EspĂndola
<rafael.espindola at gmail.com> wrote:
> On 11 October 2015 at 10:24, Rui Ueyama <ruiu at google.com> wrote:
>> Sorry about the style change. I'll separate them in future.
>>
>> I think the use of unordered_set is reasonable because the number of
>> segments are very small.
>
> That is precisely why it is not reasonable :-)
>
> Playing with the code a bit it seems the best thing is to just replace
> it with at SmallPtrSet.
>
> Cheers,
> Rafael
More information about the llvm-commits
mailing list