This is similar to D13008
Pointers in different addrspaces can have different sizes, so it's not valid to look through addrspace cast calculating base and offset for a value.
Differential D24729
Don't look through addrspacecast in GetPointerBaseWithConstantOffset apilipenko on Sep 19 2016, 8:44 AM. Authored by
Details This is similar to D13008 Pointers in different addrspaces can have different sizes, so it's not valid to look through addrspace cast calculating base and offset for a value.
Diff Detail Event Timeline
Comment Actions Let GetPointerBaseWithConstantOffset look through addrspace casts which doesn't change pointer size
Comment Actions LGTM w/comment addressed.
|
For consistency, you should also change getUnderlyingObject at the same time.