OSDN Git Service

Fix a really annoying "bug" introduced in r165941. The change from that
authorChandler Carruth <chandlerc@gmail.com>
Wed, 17 Oct 2012 07:22:16 +0000 (07:22 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 17 Oct 2012 07:22:16 +0000 (07:22 +0000)
commit020d9d5feb59b4e92b4b55c5850fe3a5f77671b0
treedf240f680e6c01a493d8746c011b60ded77b6d3d
parentfda458c2df6c282a4fbe335157676f7fa4117021
Fix a really annoying "bug" introduced in r165941. The change from that
revision makes no sense. We cannot use the address space of the *post
indexed* type to conclude anything about a *pre indexed* pointer type's
size. More importantly, this index can never be over a pointer. We are
indexing over arrays and vectors here.

Of course, I have no test case here. Neither did the original patch. =/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166091 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp