ModuleUtils - silence static analyzer dyn_cast<> null dereference warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 27 Sep 2019 16:55:49 +0000 (16:55 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 27 Sep 2019 16:55:49 +0000 (16:55 +0000)
commit2e0de86808863a3bce977e3a2999f2a625523ca4
tree91eeacda93c7791c391694003b66d8d3343b31ee
parentd8e38b9b888b6c18edb41a77e59cbbf86c25bdea
ModuleUtils - silence static analyzer dyn_cast<> null dereference warning. NFCI.

The static analyzer is warning about a potential null dereference, but we should be able to use cast<> directly and if not assert will fire for us.

llvm-svn: 373099
llvm/lib/Transforms/Utils/ModuleUtils.cpp