diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-08-23 20:46:57 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-08-23 20:46:57 +0000 |
commit | 890f0f1612b0028b8b16730ae7ed07e295600c76 (patch) | |
tree | c545a365bbad5049978778ae7db838ace0cc879f /lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | 40b2e19cae6ab85407856c70f76278f9efbeeb7c (diff) |
Change a bunch of cases where we do "getAs<...>->doSomething()" to
"castAs<...>->doSomething()". The analyzer was flagging these
as potential null dereferences, which is technically true. The
invariants appear to be that these casts should never fail, so
let's use castAs<> instead and avoid a runtime check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ExprEngine.cpp')
0 files changed, 0 insertions, 0 deletions