aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorVince Bridgers <vince.a.bridgers@gmail.com>2022-06-06 08:23:08 -0400
committereinvbri <vince.a.bridgers@ericsson.com>2022-06-07 13:34:06 -0400
commitc7fa4e8a8bc41e52cc49a27e0495d67d730fa167 (patch)
tree57d4c3a5b545e82dd5a1bac7a3761888cef3c926 /llvm/lib/Support/CommandLine.cpp
parent82040d414b3c9fc283ba57c8193fbc9578044cd9 (diff)
downloadllvm-c7fa4e8a8bc41e52cc49a27e0495d67d730fa167.zip
llvm-c7fa4e8a8bc41e52cc49a27e0495d67d730fa167.tar.gz
llvm-c7fa4e8a8bc41e52cc49a27e0495d67d730fa167.tar.bz2
[analyzer] Fix null pointer deref in CastValueChecker
A crash was seen in CastValueChecker due to a null pointer dereference. The fix uses QualType::getAsString to avoid the null dereference when a CXXRecordDecl cannot be obtained. A small reproducer is added, and cast value notes LITs are updated for the new debug messages. Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D127105
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions