]> granicus.if.org Git - clang/commit
IRgen: Rewrite bit-field access policy to not access data beyond the bounds of the...
authorDaniel Dunbar <daniel@zuster.org>
Thu, 22 Apr 2010 02:35:46 +0000 (02:35 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 22 Apr 2010 02:35:46 +0000 (02:35 +0000)
commite1467a4ceeeb74cdc54830e03df8d58893e38892
treef76b7f940d813b3c280da1d20ed734e57c0bda3a
parentad759530ff48385255c25e71d7e05632361e0c11
IRgen: Rewrite bit-field access policy to not access data beyond the bounds of the structure, which we also now verify as part of the post-layout consistency checks.
 - This fixes some pedantic bugs with packed structures, as well as major problems with -fno-bitfield-type-align.

 - Fixes PR5591, PR5567, and all known -fno-bitfield-type-align issues.

 - Review appreciated.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102045 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGRecordLayoutBuilder.cpp
test/CodeGen/bitfield-2.c