]> granicus.if.org Git - clang/commit
[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)
commit5e606f16eec95ead0f7907838ab5ba24318e7eda
treefc73ae84f658077ba6d7eaa7b35079ca512ecbf1
parent3f8116e6a2815b1d5f3491493938d0c63c9f42c9
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303851 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
test/CodeGen/union-tbaa1.c [new file with mode: 0644]
test/CodeGenCXX/union-tbaa2.cpp [new file with mode: 0644]