]> granicus.if.org Git - clang/commit
compute the integer width, not the memory width here. We want to know that
authorChris Lattner <sabre@nondot.org>
Thu, 24 Feb 2011 07:31:28 +0000 (07:31 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 24 Feb 2011 07:31:28 +0000 (07:31 +0000)
commit1d6ab7af99a1fc059a6aa5da083640c1d94b07f7
treeed585b0a2943b7e0882b2bdb021921b8e2c80005
parentd7f758cb88ce56c5f49faae088ab5a4073c28fa6
compute the integer width, not the memory width here.  We want to know that
_Bool is 1 bit, not 8.  This fixes an assertion on the testcase, which is
PR9304 and rdar://9045501.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126368 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaStmt.cpp
test/SemaCXX/switch.cpp