aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-02-17 08:37:06 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-02-17 08:37:06 +0000
commit543cb655b174087f6c2d22009934c9fed6c32114 (patch)
tree61c99e83fd8f8c1bf5683f7ba470c7a92fa74f16 /lib/CodeGen/TargetInfo.cpp
parent8755836379a3f8e9848b5e770aa60d00e1fbb990 (diff)
Implement -Wenum-compare, which warns when comparing two enums of
different types. We omit the warning when the enum types are anonymous. Unlike GCC, this warning does not distinguish between C++ and C/ObjC for controling whether it is on by default, it is always on by default. Original patch contributed by Richard Trieu (@ Google), I fixed some style issues, and cleaned it up for submission. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
0 files changed, 0 insertions, 0 deletions