diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-01-05 16:59:23 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-01-05 17:08:11 +0000 |
commit | 55488bd3cd1a468941e26ad4cf94f2bad887fc02 (patch) | |
tree | 313857abb89c39fffce403ba2a3d2ae06a6451b0 /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | 60466fad2dc155329cc870ea733d4f41561bd46d (diff) | |
download | llvm-55488bd3cd1a468941e26ad4cf94f2bad887fc02.zip llvm-55488bd3cd1a468941e26ad4cf94f2bad887fc02.tar.gz llvm-55488bd3cd1a468941e26ad4cf94f2bad887fc02.tar.bz2 |
CGExpr - EmitMatrixSubscriptExpr - fix getAs<> null-dereference static analyzer warning. NFCI.
getAs<> can return null if the cast is invalid, which can lead to null pointer deferences. Use castAs<> instead which will assert that the cast is valid.
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions