Change an unchecked dynamic_cast to static_cast
authorJosh Stone <jistone@redhat.com>
Tue, 25 Jun 2013 20:43:39 +0000 (13:43 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 25 Jun 2013 20:43:39 +0000 (13:43 -0700)
commit6b702833970d7e1a5a15c4ab4a54e942491d4256
treee4def4d085d60d55f6abcf4e116322cf048147a5
parenta5da29c351d0eb59976e769f5001ffb0fd72c7d3
Change an unchecked dynamic_cast to static_cast

In getAsmSignedConstant, it already assumes the variantT is correct by
immediately dereferencing a dynamic_cast result.  Since dynamic_cast
could return NULL, and this is unchecked, it might as well commit to the
expectation by using a static_cast.

Reported by Coverity as FORWARD_NULL (CWE-476).
dataflowAPI/src/RoseImpl.C