HomePhabricator

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

Authored by vsapsai on Jun 28 2019, 10:42 AM.

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

llvm-svn: 364664

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
rG021d2f209339: Update CODE_OWNERS.txt for clang-doc
Branches
Unknown
Tags
Unknown