]> granicus.if.org Git - clang/commit
[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)
commite12ed2f1cb6b9910b33e2a3b4b66d91342191797
tree913fce8c019e3b7c7b701ca42cdc8fd41444389d
parent6eb4766e65557933c30152738c47e6ff34a1d216
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325575 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenTBAA.cpp
lib/CodeGen/CodeGenTBAA.h
test/CodeGen/may-alias.c