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)
commite0712019f274d288a6b8335d85652569ccd9caf7
tree0bfcea1dec1dac819549f799bf0a0c22889e8eaa
parent9330005a547926c6bef1704b540f83755bafe8d4
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.

llvm-svn: 373478
clang/lib/AST/APValue.cpp
clang/lib/CodeGen/CGAtomic.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/Sema/SemaChecking.cpp