]> granicus.if.org Git - clang/commit
StaticAnalyzer: fix compiler warning. NFC
authorPavel Labath <labath@google.com>
Wed, 14 Mar 2018 10:16:40 +0000 (10:16 +0000)
committerPavel Labath <labath@google.com>
Wed, 14 Mar 2018 10:16:40 +0000 (10:16 +0000)
commit5f4ef08259dc1312f8ad47203a3e6bbe52ab84b7
tree2c88c62eb41cd2395e61d454d29a840ecd6d6edc
parente5f2c8657c646d5ddf8ccebcd26d7e6cb7c07715
StaticAnalyzer: fix compiler warning. NFC

My compiler (clang-3.8) complains that the RCC variable is unused.
That's not really true, as it's checked by the if-declaration, but it's
also kinda true, because we don't need to declaration if we only check
it in the if statement.

In reality, all this means that the dyn_cast<> can be replaced by isa<>,
so that's what I do here.

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