]> granicus.if.org Git - clang/commit
When computing the size of large arrays, use char units instead of bits.
authorRichard Trieu <rtrieu@google.com>
Tue, 14 May 2013 21:59:17 +0000 (21:59 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 14 May 2013 21:59:17 +0000 (21:59 +0000)
commit910f17e331221cd0833d0b5b49013cbbc7ef122a
treec92ef3acd6ef3e0cafb90f856a3de6c0ef96bb09
parente7e94c907cf6924929e81083e93628d0f520c734
When computing the size of large arrays, use char units instead of bits.
This prevents an overflow and assertion when the number of bits cannot be
stored in 64-bits.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181839 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/Sema/offsetof.c