[CodeGen] Fix generation of TBAA info for array-to-pointer conversions
authorIvan A. Kosarev <ikosarev@accesssoftek.com>
Fri, 20 Oct 2017 12:35:17 +0000 (12:35 +0000)
committerIvan A. Kosarev <ikosarev@accesssoftek.com>
Fri, 20 Oct 2017 12:35:17 +0000 (12:35 +0000)
commitf761d0e514c593c49f9dde7eebd293e97b80b8b4
tree6be84a0897b41a4c5b379e729db6e02cdbae106b
parent3d34d877cb9e682d321dd818d90178da68054ba6
[CodeGen] Fix generation of TBAA info for array-to-pointer conversions

Resolves:
Fatal error: Offset not zero at the point of scalar access.
http://llvm.org/PR34992

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

llvm-svn: 316211
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGen/tbaa-array.cpp [new file with mode: 0644]