[CodeGen] Pessimize aliasing for member unions (and may-alias) objects
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 25 May 2017 12:55:47 +0000 (12:55 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 25 May 2017 12:55:47 +0000 (12:55 +0000)
commit5960a57ef79ea29f638ef9d609541fc19764880c
tree8c8554187ce427902ddc6e384b84d1b24b77f1f8
parenta929063233acd38218219cf8ce3dd8687a42380f
[CodeGen] Pessimize aliasing for member unions (and may-alias) objects

Use the TBAA info of the omnipotent char for these objects.

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

llvm-svn: 303851
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGen/union-tbaa1.c [new file with mode: 0644]
clang/test/CodeGenCXX/union-tbaa2.cpp [new file with mode: 0644]