[NFC][CodeGen][UBSan] EmitCheckedInBoundsGEP(): refactor EmitGEPOffsetInBytes() helper
authorRoman Lebedev <lebedev.ri@gmail.com>
Fri, 6 Sep 2019 14:18:57 +0000 (14:18 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 6 Sep 2019 14:18:57 +0000 (14:18 +0000)
commit8f03dcdc91326fcccaa7aabe2fe898fd3c9c4e58
treefeb0140257fdf73093bedcbc3e68a71093457e81
parent624620ff57cd725af724fc760d3b51ce926c529f
[NFC][CodeGen][UBSan] EmitCheckedInBoundsGEP(): refactor EmitGEPOffsetInBytes() helper

It shouldn't really be inlined into the EmitCheckedInBoundsGEP().
Refactoring it beforehand will make follow-up changes more obvious.

This was originally part of https://reviews.llvm.org/D67122

llvm-svn: 371207
clang/lib/CodeGen/CGExprScalar.cpp