diff options
author | Etienne Bergeron <etienneb@google.com> | 2016-04-07 14:58:13 +0000 |
---|---|---|
committer | Etienne Bergeron <etienneb@google.com> | 2016-04-07 14:58:13 +0000 |
commit | 2c82ebe813c5f851852bdf4451a34f1d5dfe473c (patch) | |
tree | c4ace5dd02e678753a0f549c432e16d376e5a5b1 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | a62e2232815e537952bd6df271763521a0472498 (diff) | |
download | llvm-2c82ebe813c5f851852bdf4451a34f1d5dfe473c.zip llvm-2c82ebe813c5f851852bdf4451a34f1d5dfe473c.tar.gz llvm-2c82ebe813c5f851852bdf4451a34f1d5dfe473c.tar.bz2 |
[clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck.
Summary:
This is the same kind of bug than [[ http://reviews.llvm.org/D18238 | D18238 ]].
Fix crashes caused by deferencing null pointer when declarations parsing may be delayed.
The body of the declarations may be null.
The crashes were observed with a Windows build of clang-tidy and the following command-line.
```
command-line switches: -fms-compatibility-version=19 -fms-compatibility
```
Reviewers: alexfh
Subscribers: kimgr, LegalizeAdulthood, cfe-commits
Differential Revision: http://reviews.llvm.org/D18852
llvm-svn: 265681
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions