[ExecutionEngine] Don't dereference a dyn_cast result. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 16 Sep 2019 15:19:11 +0000 (15:19 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 16 Sep 2019 15:19:11 +0000 (15:19 +0000)
commita48b6e98abc15b2f41570396040454e3c093b568
tree05df21feeadff16d34e07eca63de4f02f158d657
parentd0f63f83e7c5c6fc11e964f848d1496234695182
[ExecutionEngine] Don't dereference a dyn_cast result. NFCI.

The static analyzer is warning about potential null dereferences of dyn_cast<> results - in these cases we can safely use cast<> directly as we know that these cases should all be the correct type, which is why its working atm and anyway cast<> will assert if they aren't.

llvm-svn: 371998
llvm/lib/ExecutionEngine/ExecutionEngine.cpp