aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorSindhu Chittireddy <sindhu.chittireddy@intel.com>2021-08-26 06:58:56 -0400
committerAaron Ballman <aaron@aaronballman.com>2021-08-26 06:58:56 -0400
commitde15979bc32d761c9b5071fb7d28d7c04ebbfaf3 (patch)
treecb77da8ddef98d3816b93bde6baaba7606b24c35 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent9b830c798ebf2695772e8eaaeed3cd24fa66b68b (diff)
downloadllvm-de15979bc32d761c9b5071fb7d28d7c04ebbfaf3.zip
llvm-de15979bc32d761c9b5071fb7d28d7c04ebbfaf3.tar.gz
llvm-de15979bc32d761c9b5071fb7d28d7c04ebbfaf3.tar.bz2
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.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions