]> granicus.if.org Git - clang/commit
SemaExpr - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 28 Sep 2019 14:01:52 +0000 (14:01 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 28 Sep 2019 14:01:52 +0000 (14:01 +0000)
commit18207852caa745169e9db3e7c6a47b27755aae90
tree6177bc255ad86c695f5b64e868a10d3fe625f573
parentb07d2935dbfe199da132af26842ddad2fcbb21e1
SemaExpr - 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373150 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp