CGExprConstant - silence static analyzer getAs<> null dereference warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Oct 2019 10:38:40 +0000 (10:38 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Oct 2019 10:38:40 +0000 (10:38 +0000)
commitcebfddc0b589037909e12308ccf8dde6a2c167f2
tree8ab90647b84656978b90f69c760b8c0011c8fe62
parent729a2f6c2bd8a4f2254e3f8a93e8e0c5120ebd35
CGExprConstant - silence static analyzer getAs<> null dereference warning. NFCI.

The static analyzer is warning about a potential null dereference, but in these cases we should be able to use castAs<> directly and if not assert will fire for us.

llvm-svn: 374988
clang/lib/CodeGen/CGExprConstant.cpp