]> granicus.if.org Git - llvm/commit
[SLPVectorizer] Don't dereference a dyn_cast result. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 16 Sep 2019 10:35:09 +0000 (10:35 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 16 Sep 2019 10:35:09 +0000 (10:35 +0000)
commitc46379da2cb3177bf719f9e6c83762314aa545c2
tree0d5c83d5e49c85fd0145104dcf7c60ecc1c1b3a3
parent2eb46d74d257cec738558922561290a978e8b1fc
[SLPVectorizer] 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@371973 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp