]> granicus.if.org Git - clang/commit
TBAA: make sure zero-length bitfield works for tbaa.struct and path-aware tbaa
authorManman Ren <mren@apple.com>
Mon, 22 Apr 2013 19:50:07 +0000 (19:50 +0000)
committerManman Ren <mren@apple.com>
Mon, 22 Apr 2013 19:50:07 +0000 (19:50 +0000)
commitc7f2bfb4a2dcda757619356a28cb633711a6548c
tree84f2b96f3c8e2fce4d3214bf06942a3291b0ed4d
parent1e7ca6211c77208c8a339c2a26e612be81c70ec5
TBAA: make sure zero-length bitfield works for tbaa.struct and path-aware tbaa

For ms structs, zero-length bitfields following non-bitfield members are
completely ignored, we should not increase the field index.
Before the fix, we will have an assertion failure.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180038 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenTBAA.cpp
test/CodeGen/tbaa-struct.cpp
test/CodeGen/tbaa.cpp