[CodeGen] Refine generation of TBAA info for bit-field lvalues
authorIvan A. Kosarev <ikosarev@accesssoftek.com>
Tue, 17 Oct 2017 11:20:19 +0000 (11:20 +0000)
committerIvan A. Kosarev <ikosarev@accesssoftek.com>
Tue, 17 Oct 2017 11:20:19 +0000 (11:20 +0000)
commit17db3a10f5c51bf6464b69b118786d6d49dcbf0f
treeaefe4f69d3655d1a4e6e3178b2999c2b18697671
parentc95c2be081cf47ab29a1816c2dfe9328b1ece3ea
[CodeGen] Refine generation of TBAA info for bit-field lvalues

The main change is that now we generate TBAA info before
constructing the resulting lvalue instead of constructing lvalue
with some default TBAA info and fixing it as necessary
afterwards. We also keep the TBAA info close to lvalue base info,
which is supposed to simplify their future merging.

This patch should not bring in any functional changes.

This is part of D38126 reworked to be a separate patch to
simplify review.

Differential Revision: https://reviews.llvm.org/D38947

llvm-svn: 315989
clang/lib/CodeGen/CGExpr.cpp