]> granicus.if.org Git - clang/commit
For "if ((a == b))" only warn if 'a' is a modifiable l-value. Caught by John!
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 1 Feb 2011 19:32:59 +0000 (19:32 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 1 Feb 2011 19:32:59 +0000 (19:32 +0000)
commit70f233017bd3091137dcfbc00f6b2baea56edba9
treeb6183bc1d6b45d5525e3d5a01f670118415fc69f
parentbe29d8d3dff34313c1ae1ae09145e64dd948b0da
For "if ((a == b))" only warn if 'a' is a modifiable l-value. Caught by John!

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