]> granicus.if.org Git - llvm/commit
[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)
commitf4ee527f9a9866438e9767ba04ebab6f9c84d28c
tree9d74c9abc3d107fe58eae7c036fb3491ee46a74e
parent4da58da41bdb1f10123912049bd4213af0fe1355
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp