]> granicus.if.org Git - clang/commit
When deciding whether to complain about the type of a boolean condition, use
authorJohn McCall <rjmccall@apple.com>
Sat, 4 Dec 2010 06:09:13 +0000 (06:09 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 4 Dec 2010 06:09:13 +0000 (06:09 +0000)
commitabc56c726178fc7c8a3f45185768426a6e9d584e
treea6d10000ef20e88638357a3f36e586b031488042
parente7c68495633f36cf80be091f7d85c93476f3f2f2
When deciding whether to complain about the type of a boolean condition, use
the type of the expression *after* array/function decay.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120895 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/Sema/exprs.c
test/SemaCXX/condition.cpp