]> granicus.if.org Git - clang/commit
Replace r313747, don't always warn on enums, rework testcases.
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 20 Sep 2017 13:50:01 +0000 (13:50 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 20 Sep 2017 13:50:01 +0000 (13:50 +0000)
commit9a0f62efc8314133e355a190fa2cac4eb18dd2cc
treeeb1acd94e28af258fa6fd6ef70c4c47275ac733f
parent2100b0595fd952fab745d8f53e6619ca0c0d06b2
Replace r313747, don't always warn on enums, rework testcases.

As Aaron Ballman has pointed out, that is not really correct.
So the key problem there is the invalidity of the testcase.

Revert r313747, and rework testcase in such a way, so these
details (platform-specific default enum sigdness) are
accounted for.

Also, add a C++-specific testcase.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313756 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/tautological-unsigned-enum-zero-compare.c
test/Sema/tautological-unsigned-enum-zero-compare.cpp [new file with mode: 0644]