]> granicus.if.org Git - llvm/commit
[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)
commit50c08575a36e8557a78a05ab551e4f0910ba113e
tree914586ef160d0095294bfaf8faafe2b71a653a17
parent6d417fdf447d108ace70e78a82573818bbfcfed1
[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.

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