ObjCARC: Don't increment or dereference end() when scanning args
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 17 Aug 2016 01:02:18 +0000 (01:02 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 17 Aug 2016 01:02:18 +0000 (01:02 +0000)
commit6331dc171c9f91876c28acf0a2396af1b2e9bd2f
tree650cd13c6e0aaf914248401654e67457d74cdc3d
parentec083b59edf0cbf0855527c753d9053bcdba33da
ObjCARC: Don't increment or dereference end() when scanning args

When there's only one argument and it doesn't match one of the known
functions, return ARCInstKind::CallOrUser rather than falling through
to the two argument case.  The old behaviour both incremented past and
dereferenced end().

llvm-svn: 278881
llvm/lib/Analysis/ObjCARCInstKind.cpp