LoopVectorize: Don't assume pointees are sized
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 7 Nov 2014 00:31:14 +0000 (00:31 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 7 Nov 2014 00:31:14 +0000 (00:31 +0000)
commitbb642c4369ed634e550e301a58d64028f2d4ac68
treeb9cde8a05248e210fbffb1fa5b1edf53c8cfd022
parent98066413ca49bc8bcca445bbd5bd3620c5ae49fc
LoopVectorize: Don't assume pointees are sized

A pointer's pointee might not be sized: the pointee could be a function.

Report this as IK_NoInduction when calculating isInductionVariable.

This fixes PR21508.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221501 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/unsized-pointee-crash.ll [new file with mode: 0644]