]> granicus.if.org Git - llvm/commit
[SLPVectorizer] Silence null dereference warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 16 Aug 2019 10:28:23 +0000 (10:28 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 16 Aug 2019 10:28:23 +0000 (10:28 +0000)
commit7f0eaaa700d43c5e40f5d433e4c490aa19c7d821
tree393df9b05a25a8f1133f788d8635f8c2b6690684
parent1375c53904af0cadb5bf552226fdc02b3e170227
[SLPVectorizer] Silence null dereference warning. NFCI.

cppcheck + MSVC analyzer both over zealously warn that we might dereference a null Bundle pointer - add an assertion to check for null to silence the warning, plus its a good idea to check that we succeeded in finding a schedule bundle anyway....

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369094 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp