diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2012-06-21 05:54:55 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2012-06-21 05:54:55 +0000 |
| commit | 81a5641e5f446d0e879595d3659e76845c7a9410 (patch) | |
| tree | 0d399123fc447800a52e33106f9e0b001b1463a4 /lib/CodeGen/CGExpr.cpp | |
| parent | 05233276b5b0d76e9ebd75eaa2709dff9b316590 (diff) | |
| download | clang-81a5641e5f446d0e879595d3659e76845c7a9410.tar.gz clang-81a5641e5f446d0e879595d3659e76845c7a9410.tar.bz2 clang-81a5641e5f446d0e879595d3659e76845c7a9410.tar.xz | |
Pretend that enum constants have enum type when inferring a block return type.
In C, enum constants have the type of the enum's underlying integer type,
rather than the type of the enum. (This is not true in C++.) This leads to
odd warnings when returning enum constants directly in blocks with inferred
return types. The easiest way out of this is to pretend that, like C++, enum
constants have enum type when being returned from a block.
<rdar://problem/11662489>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
