Assert pointer cannot be null; NFC
authorSindhu Chittireddy <sindhu.chittireddy@intel.com>
Thu, 26 Aug 2021 10:58:56 +0000 (06:58 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 26 Aug 2021 10:58:56 +0000 (06:58 -0400)
commitde15979bc32d761c9b5071fb7d28d7c04ebbfaf3
treecb77da8ddef98d3816b93bde6baaba7606b24c35
parent9b830c798ebf2695772e8eaaeed3cd24fa66b68b
Assert pointer cannot be null; NFC

Klocwork static code analysis exposed this concern:
Pointer 'SubExpr' returned from call to getSubExpr() function which may
return NULL from 'cast_or_null<Expr>(Operand)', which will be
dereferenced in the statement following it

Add an assert on SubExpr to make it clear this pointer cannot be null.
clang/lib/CodeGen/MicrosoftCXXABI.cpp