aprantl accepted this revision. aprantl added a comment. This revision is now accepted and ready to land. Querying the the layout for the offset is definitely the right way to go. Thanks a lot! Repository: rL LLVM https://reviews.llvm.org/D42489