diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-22 02:31:55 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-22 02:31:55 +0000 |
commit | e476f979ca2614775ea8454c10983011da68ed33 (patch) | |
tree | 2b4671cc68776ba0d55e48192f8e586bae7c6f7a /llvm/lib/Target/CppBackend/CPPBackend.cpp | |
parent | 29e7d608807d3da5e68a6420fbbe4a757cc01a03 (diff) | |
download | llvm-e476f979ca2614775ea8454c10983011da68ed33.zip llvm-e476f979ca2614775ea8454c10983011da68ed33.tar.gz llvm-e476f979ca2614775ea8454c10983011da68ed33.tar.bz2 |
Fix -Wswitch to warn about out of bounds enum cases even when there's a default
For consistency with GCC & reasonable sanity. The FIXME suggests that the
original author was perhaps using the default check for some other purpose,
not realizing the more obvious limitation/false-negatives it creates, but this
doesn't seem to produce any regressions & fixes the included test.
llvm-svn: 148649
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
0 files changed, 0 insertions, 0 deletions