[SROA] Use the correct index integer size in GEPs through non-default
authorChandler Carruth <chandlerc@gmail.com>
Wed, 26 Feb 2014 10:08:16 +0000 (10:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 26 Feb 2014 10:08:16 +0000 (10:08 +0000)
commit2b442bffcbcc58cfa84a8179ee191fc9e8b54a3d
tree6d9840ae72bddc3465d95c57975168a9f72a5735
parent18eab50e99ab1cbfff3f80629bd3311fd444a14d
[SROA] Use the correct index integer size in GEPs through non-default
address spaces.

This isn't really a correctness issue (the values are truncated) but its
much cleaner.

Patch by Matt Arsenault!

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