aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-06-21 05:54:55 +0000
committerJordan Rose <jordan_rose@apple.com>2012-06-21 05:54:55 +0000
commit81a5641e5f446d0e879595d3659e76845c7a9410 (patch)
tree0d399123fc447800a52e33106f9e0b001b1463a4 /lib/Driver/Tools.cpp
parent05233276b5b0d76e9ebd75eaa2709dff9b316590 (diff)
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/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions