]> granicus.if.org Git - clang/commit
Fix rdar://6518463, increment of a bool is always true, due to
authorChris Lattner <sabre@nondot.org>
Wed, 11 Feb 2009 07:40:06 +0000 (07:40 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 11 Feb 2009 07:40:06 +0000 (07:40 +0000)
commitdb3bd4b4eabc325781a6a407c3dcf68a8d6db0f9
tree86d39f57f79fd7f166bb798c8ef6b15c41c5c686
parente5ed15195b71b8fa440e67d49db0168bb58e4e8a
Fix rdar://6518463, increment of a bool is always true, due to
subtle and non-obvious promotion rules.  We already handle +=
and +1 correctly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64296 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp