diff options
author | Adrian Prantl <aprantl@apple.com> | 2020-01-08 14:18:47 -0800 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2020-01-10 08:52:46 -0800 |
commit | e9331a56fead1823d528d6412828fb9e16fd62ff (patch) | |
tree | 0532d62035494c012cd196e24065418c6eed7c62 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | bdd88b7ed3956534a0a71b1ea2bc88c69d48f9b7 (diff) | |
download | llvm-e9331a56fead1823d528d6412828fb9e16fd62ff.zip llvm-e9331a56fead1823d528d6412828fb9e16fd62ff.tar.gz llvm-e9331a56fead1823d528d6412828fb9e16fd62ff.tar.bz2 |
Add missing nullptr checks.
GetPersistentExpressionStateForLanguage() can return a nullptr if it
cannot construct a typesystem. This patch adds missing nullptr checks
at all uses.
Inspired by rdar://problem/58317195
Differential Revision: https://reviews.llvm.org/D72413
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions