]> granicus.if.org Git - clang/commit
SemaExceptionSpec - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 21 Oct 2019 18:28:31 +0000 (18:28 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 21 Oct 2019 18:28:31 +0000 (18:28 +0000)
commit03d35ab3ae600b0659dcb47c006d9d51925e427f
tree08560655d74de0e7fc2ec752d2b810aa489c42c0
parent12014db57cd60b1e9b082c494545225af5c36e30
SemaExceptionSpec - 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@375440 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExceptionSpec.cpp