]> granicus.if.org Git - clang/commit
Retry r126357. Use CharUnits for the Size and DataSize calculations when
authorKen Dyck <kd@kendyck.com>
Mon, 28 Feb 2011 02:01:38 +0000 (02:01 +0000)
committerKen Dyck <kd@kendyck.com>
Mon, 28 Feb 2011 02:01:38 +0000 (02:01 +0000)
commitf079b735d876f75e67b8dcc6980d0b742903ce0d
tree0800184b1c48e29ad83ab475136e3ccfd6919dbd
parentd3bf3c0287a057eafe4b5d5588ebbb29f40ab6e1
Retry r126357. Use CharUnits for the Size and DataSize calculations when
they are known to be exact multiples of the width of the char type. Add a
test case to CodeGen/union.c that would have caught the problem with the
previous attempt. No change in functionality intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126628 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/RecordLayoutBuilder.cpp
test/CodeGen/union.c