[CodeGen] Fix generation of TBAA tags for may-alias accesses
authorIvan A. Kosarev <ikosarev@accesssoftek.com>
Tue, 20 Feb 2018 12:33:04 +0000 (12:33 +0000)
committerIvan A. Kosarev <ikosarev@accesssoftek.com>
Tue, 20 Feb 2018 12:33:04 +0000 (12:33 +0000)
commit124a2187adcb774d6b1806172f351d968dd39190
treeb977f06a1954314b79d6b3925f628eab8ddea113
parent3ebf760a9237228b9ffa8b17e445fc9f55ffced6
[CodeGen] Fix generation of TBAA tags for may-alias accesses

This patch fixes creating TBAA access descriptors for
may_alias-marked access types. Currently, for such types we
generate ordinary descriptors with char as its access type. The
patch changes this to produce proper may-alias descriptors.

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

llvm-svn: 325575
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenTBAA.cpp
clang/lib/CodeGen/CodeGenTBAA.h
clang/test/CodeGen/may-alias.c