diff options
| author | Artem Dergachev <artem.dergachev@gmail.com> | 2019-03-15 00:26:17 +0000 |
|---|---|---|
| committer | Artem Dergachev <artem.dergachev@gmail.com> | 2019-03-15 00:26:17 +0000 |
| commit | f2192b204ff49561cc73fe06a76216f3cab39d84 (patch) | |
| tree | c601a48b83201e9b72d5bee3c60e0214dcff85af /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 06451368d2f0efb723ac4dc392c705b787f56253 (diff) | |
[analyzer] RetainCount: A function isn't a CFRetain if it takes no arguments.
Don't crash when a function has a name that starts with "CF" and ends with
"Retain" but takes 0 arguments. In particular, don't try to treat it as if
it returns its first argument.
These problems are inevitable because the checker is naming-convention-based,
but at least we shouldn't crash.
Differential Revision: https://reviews.llvm.org/D59123
llvm-svn: 356223
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
