fail to find dimensions when ElementSize is nullptr
authorSebastian Pop <spop@codeaurora.org>
Thu, 29 May 2014 19:44:05 +0000 (19:44 +0000)
committerSebastian Pop <spop@codeaurora.org>
Thu, 29 May 2014 19:44:05 +0000 (19:44 +0000)
commit5352408169d6b9927bc7fffd590fe8850eb93bb6
treeb5ebb322c9a1901ba40b584b7a1022fab6bb3d6c
parentbdd2b3c7c52def557019b6513fcc3027136aa170
fail to find dimensions when ElementSize is nullptr

when ScalarEvolution::getElementSize returns nullptr it is safe to early return
in ScalarEvolution::findArrayDimensions such that we avoid later problems when
we try to divide the terms by ElementSize.

llvm-svn: 209837
llvm/lib/Analysis/ScalarEvolution.cpp