[IR] IntrinsicInst - silence static analyzer dyn_cast<> null dereference warnings...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 24 Sep 2019 11:40:45 +0000 (11:40 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 24 Sep 2019 11:40:45 +0000 (11:40 +0000)
commit06cdcb5f68b923c7e6e632edd91f49e4f9dd653e
treeba72d92d740f01d2c2a12d65b20fc62f9fe8c178
parent934f18144de4b8039e602608f508f5210177a670
[IR] IntrinsicInst - silence static analyzer dyn_cast<> null dereference warnings. 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: 372733
llvm/lib/IR/IntrinsicInst.cpp