aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/CompilerInvocationTest.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-01-05 16:59:23 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-01-05 17:08:11 +0000
commit55488bd3cd1a468941e26ad4cf94f2bad887fc02 (patch)
tree313857abb89c39fffce403ba2a3d2ae06a6451b0 /clang/unittests/Frontend/CompilerInvocationTest.cpp
parent60466fad2dc155329cc870ea733d4f41561bd46d (diff)
downloadllvm-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