OSDN Git Service

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)
commite741924230245250448a41d54adc7238e0eac716
tree993fe5ecb38cc22c0e84e8bd070e648d4c3d977b
parentd4d04199acab16a7bb9ca186bd95770ced578395
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209837 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp