diff options
author | John McCall <rjmccall@apple.com> | 2010-11-10 23:38:19 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-11-10 23:38:19 +0000 |
commit | 1844a6e1074a5c1fd8eadac7fc7317c3e29d4653 (patch) | |
tree | 31b15e15db63aa9e6196ec1fcf3b464278c75bee /include/clang/Frontend/CompilerInstance.h | |
parent | 3473a10ee6ba13ebba7b71f31b244afb94917a86 (diff) |
When -Wconversion computes the range of a type, it uses the (bit-)range
of the enumerators rather than the actual expressible range. This is
great when dealing with opaque *values* of that type, but when computing
the range of the type for purposes of converting *into* it, it produces
warnings in cases we don't care about (e.g. enum_t x = 500;). Divide
the logic into these two cases and use the more conservative range for
targets.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CompilerInstance.h')
0 files changed, 0 insertions, 0 deletions