]> granicus.if.org Git - clang/commit
[analyzer] Use getParentIgnoreParenCasts instead of doing it by hand.
authorJordan Rose <jordan_rose@apple.com>
Fri, 20 Sep 2013 16:51:50 +0000 (16:51 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 20 Sep 2013 16:51:50 +0000 (16:51 +0000)
commit7c98f9f5c3202a0b11eda7f30b4edd8cb4d1139c
tree238e75c79f6e3f5783a02c3d3e237f4743133cc3
parentea43cd8ab049de6cb36f5c341e7a022f0d5b09bf
[analyzer] Use getParentIgnoreParenCasts instead of doing it by hand.

Apart from being more compact and already implemented, this also handles the
case where the parent is null. (It does also ignore all casts, not just
implicit ones, but this is more efficient to test and in the case we care
about---a message in a PseudoObjectExpr---there should only be implicit casts
anyway.

This should fix our internal buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191094 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/CallEvent.cpp