HomePhabricator

[ODRHash] Fix null pointer dereference for ObjC selectors with empty slots.

Description

[ODRHash] Fix null pointer dereference for ObjC selectors with empty slots.

Selector::getIdentifierInfoForSlot returns NULL if a slot has no
corresponding identifier. Add a boolean to the hash and a NULL check.

rdar://problem/51615164

Reviewers: rtrieu

Reviewed By: rtrieu

Subscribers: dexonsmith, cfe-commits, jkorous

Differential Revision: https://reviews.llvm.org/D63789

Details

Committed
vsapsaiJun 28 2019, 10:42 AM
Reviewer
rtrieu
Differential Revision
D63789: [ODRHash] Fix null pointer dereference for ObjC selectors with empty slots.
Parents
rL364663: Update CODE_OWNERS.txt for clang-doc
Branches
Unknown
Tags
Unknown