]> granicus.if.org Git - clang/commit
[Sema] CheckTautologicalComparisonWithZero(): always complain about enums
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 20 Sep 2017 10:15:27 +0000 (10:15 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 20 Sep 2017 10:15:27 +0000 (10:15 +0000)
commit2100b0595fd952fab745d8f53e6619ca0c0d06b2
tree3ac39d137b49ecb9e97f112ef9fb4da7895d077a
parentc0bcf3b94575fde275692743ed5d3c0b892c8daa
[Sema] CheckTautologicalComparisonWithZero(): always complain about enums

Hopefully fixes test-clang-msc-x64-on-i686-linux-RA build.

The underlying problem is that the enum is signed there.
Yet still, it is invalid for it to contain negative values,
so the comparison is always tautological in this case.

No differential, but related to https://reviews.llvm.org/D37629

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313747 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp