]> granicus.if.org Git - clang/commit
Silence static analyzer getAs<VectorType> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 15:31:25 +0000 (15:31 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 15:31:25 +0000 (15:31 +0000)
commit4ac13cadf1a1b1ac508c98e3eebc73e4a01fdbc3
tree67ada71ce5f4e95f643e3dae45233594d27687f3
parente1b70ba580df4456bd12f526172a2056facf8da4
Silence static analyzer getAs<VectorType> null dereference warnings. NFCI.

The static analyzer is warning about potential null dereferences, but in these cases we should be able to use castAs<VectorType> directly and if not assert will fire for us.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373478 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/APValue.cpp
lib/CodeGen/CGAtomic.cpp
lib/CodeGen/CGExprScalar.cpp
lib/Sema/SemaChecking.cpp