]> granicus.if.org Git - clang/commit
Type - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 16:03:36 +0000 (16:03 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 16:03:36 +0000 (16:03 +0000)
commitaef104aca0c640a9645dcc94ce0fb8ca54ff4d2d
tree4dd68962f026c241796a6d3fdda04ad640929136
parent4ac13cadf1a1b1ac508c98e3eebc73e4a01fdbc3
Type - 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@373480 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Type.cpp