[all-commits] [llvm/llvm-project] 55488b: CGExpr - EmitMatrixSubscriptExpr - fix getAs<> nul...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Tue Jan 5 09:14:08 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 55488bd3cd1a468941e26ad4cf94f2bad887fc02
https://github.com/llvm/llvm-project/commit/55488bd3cd1a468941e26ad4cf94f2bad887fc02
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2021-01-05 (Tue, 05 Jan 2021)
Changed paths:
M clang/lib/CodeGen/CGExpr.cpp
Log Message:
-----------
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.
More information about the All-commits
mailing list