diff options
author | Haojian Wu <hokein@google.com> | 2019-05-28 11:54:01 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2019-05-28 11:54:01 +0000 |
commit | 2255b31cec4206769630ae6f9801491317bd11ec (patch) | |
tree | c94370108541a83dde798d20bdeb251bf48f5690 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 53f2f3286572cb879b3861d7c15480e4d830dd3b (diff) | |
download | llvm-2255b31cec4206769630ae6f9801491317bd11ec.zip llvm-2255b31cec4206769630ae6f9801491317bd11ec.tar.gz llvm-2255b31cec4206769630ae6f9801491317bd11ec.tar.bz2 |
[clang-tidy] Fix null pointer dereference in readability-identifier-naming
Summary:
readability-identifier-naming causes a null pointer dereference when checking an identifier introduced by a structured binding whose right hand side is an undeclared identifier.
Running the check on a file that is just the following results in a crash:
```
auto [left] = right;
```
Patch by Mark Stegeman!
Reviewers: alexfh, hokein, aaron.ballman, JonasToth
Reviewed By: hokein, aaron.ballman
Subscribers: madsravn, xazax.hun, cfe-commits
Tags: #clang-tools-extra, #clang
Differential Revision: https://reviews.llvm.org/D62404
llvm-svn: 361809
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions