diff options
| author | Vedant Kumar <vsk@apple.com> | 2017-04-26 15:40:21 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2017-04-26 15:40:21 +0000 |
| commit | 25b6a7db2fa59eacca01da41b1c9521b0da74fc4 (patch) | |
| tree | e7ece74b579f2e405686d707e80408f3c4320ef7 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 7f5b3d6fc83e4f4c2aa64967ba9f45a361b67502 (diff) | |
| download | llvm-25b6a7db2fa59eacca01da41b1c9521b0da74fc4.zip llvm-25b6a7db2fa59eacca01da41b1c9521b0da74fc4.tar.gz llvm-25b6a7db2fa59eacca01da41b1c9521b0da74fc4.tar.bz2 | |
[Sema] Avoid using a null type pointer (fixes PR32750)
isMicrosoftMissingTypename() uses a Type pointer without first checking
that it's non-null. PR32750 reports a case where the pointer is in fact
null. This patch adds in a defensive check and a regression test.
Differential Revision: https://reviews.llvm.org/D32519
llvm-svn: 301420
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
