This is an archive of the discontinued LLVM Phabricator instance.

[Objective-c] Fix a crash
ClosedPublic

Authored by ahatanak on Dec 11 2015, 1:07 PM.

Details

Summary

This patch fixes a crash that occurs when __kindof is incorrectly used in the type parameter list of an interface. The crash occurs because ObjCTypeParamList::back() is called in checkTypeParamListConsistency on an empty list:

00762 diagLoc = S.getLocForEndOfToken(newTypeParams->back()->getLocEnd());

Diff Detail

Repository
rL LLVM

Event Timeline

ahatanak updated this revision to Diff 42560.Dec 11 2015, 1:07 PM
ahatanak retitled this revision from to [Objective-c] Fix a crash.
ahatanak updated this object.
ahatanak added a subscriber: cfe-commits.
This revision was automatically updated to reflect the committed changes.