Handle AddrSpaceCast in stripAndAccumulateInBoundsConstantOffsets
authorHal Finkel <hfinkel@anl.gov>
Sat, 19 Jul 2014 03:32:02 +0000 (03:32 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 19 Jul 2014 03:32:02 +0000 (03:32 +0000)
commit07adbf3a870ab0ca8eb11534940aed2bf64af695
treebda0256a8d5de4f5fb70032984507d96e6264745
parentf707267837b96725eae22a73ab415cbbd6c1746a
Handle AddrSpaceCast in stripAndAccumulateInBoundsConstantOffsets

All of the other similar functions in that part of the file look through
addrspacecast in addition to bitcast, and I see no reason why
stripAndAccumulateInBoundsConstantOffsets shouldn't do so also.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213449 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Value.cpp