commit | 890f0f1612b0028b8b16730ae7ed07e295600c76 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Aug 23 20:46:57 2012 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Aug 23 20:46:57 2012 +0000 |
tree | c545a365bbad5049978778ae7db838ace0cc879f | |
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