[CodeGen] Fix access sizes in new-format TBAA tags
authorIvan A. Kosarev <ikosarev@accesssoftek.com>
Thu, 21 Dec 2017 08:14:16 +0000 (08:14 +0000)
committerIvan A. Kosarev <ikosarev@accesssoftek.com>
Thu, 21 Dec 2017 08:14:16 +0000 (08:14 +0000)
commit617c3b788a6031f5bc6561e035ba099bc4a459b2
tree09c69228aac685d1a57047b84a110c914734ebfa
parent38af615b4c03cc0ed36c816e0cd722505bf385b9
[CodeGen] Fix access sizes in new-format TBAA tags

The new format requires to specify both the type of the access
and its size. This patch fixes setting access sizes for TBAA tags
that denote accesses to structure members. This fix affects all
future TBAA metadata tests for the new format, so I guess we
don't need any special tests for this fix.

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

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