summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-11-04 06:16:09 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-11-04 06:16:09 +0000
commit6232e4d5d98bf37d9bfd049b4d34ca8912b45380 (patch)
treeb3a3aa625d07c8d094a6a98e328f1289d88bd8c1 /clang/lib/AST/Expr.cpp
parent3d40284570058560a3cfd92ba74ef37988746a31 (diff)
downloadbcm5719-llvm-6232e4d5d98bf37d9bfd049b4d34ca8912b45380.tar.gz
bcm5719-llvm-6232e4d5d98bf37d9bfd049b4d34ca8912b45380.zip
Delete a trivially true check for a variable 'S' being null.
The exact same test guards entry into the loop in which this test occurs, and there is nothing inside the loop that assigns to the variable, so it has already been checked for null. This was flagged by PVS-Studio as well, but the report is actually wrong -- this is not a case where we dereference a variable prior to testing it for null, this is a case where we have a redundant test for null after we already performed the exact same test. llvm-svn: 285983
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud