Because Selector::getIdentifierInfoForSlot returns NULL if a slot has
no corresponding identifier, use Selector::getNameForSlot instead.
rdar://problem/51615164
Differential D63789
[ODRHash] Fix null pointer dereference for ObjC selectors with empty slots. vsapsai on Jun 25 2019, 1:37 PM. Authored by
Details Because Selector::getIdentifierInfoForSlot returns NULL if a slot has rdar://problem/51615164
Diff Detail
Event Timeline
|
There's actually a second bug here as well. When processing an arbitrary number of elements, the number of elements needs to placed before the list. This line should be added before the for-loop:
This change isn't directly related to your original patch, so feel free to skip it.