]> granicus.if.org Git - clang/commit
IRgen: Fix another case where we generated an invalid access component when we
authorDaniel Dunbar <daniel@zuster.org>
Thu, 22 Apr 2010 15:22:33 +0000 (15:22 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 22 Apr 2010 15:22:33 +0000 (15:22 +0000)
commit52968a1c765e43000f904ecb27a6353b0185bcd6
tree86c5c79552c9e9815697ffb465a30b3181f98d95
parent4651efb5ba5710c91b58c8b86872b264dd71f464
IRgen: Fix another case where we generated an invalid access component when we
immediately narrowed the access size. Fix this (and previous case) by just
choosing a better access size up-front.

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