[all-commits] [llvm/llvm-project] e14851: SemaExprCXX - silence static analyzer getAs<> null...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Oct 17 04:11:21 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e14851259e770a59db736964475ebd152fe1c793
https://github.com/llvm/llvm-project/commit/e14851259e770a59db736964475ebd152fe1c793
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2019-10-17 (Thu, 17 Oct 2019)
Changed paths:
M clang/lib/Sema/SemaExprCXX.cpp
Log Message:
-----------
SemaExprCXX - silence static analyzer getAs<> null dereference warnings. NFCI.
The static analyzer is warning about potential null dereferences, but in these cases we should be able to use castAs<> directly and if not assert will fire for us.
llvm-svn: 375101
More information about the All-commits
mailing list