CoerceAndExpand switch warnings after latest clang/llvm stable merge


(David Farler) #1

Just a heads up - the latest stable merge exposed a couple of switch warnings:

swift/lib/IRGen/GenFunc.cpp:1338:13: warning: enumeration value 'CoerceAndExpand' not handled in switch [-Wswitch]
    switch (AI.getKind()) {
            ^
swift/lib/IRGen/GenFunc.cpp:2916:13: warning: enumeration value 'CoerceAndExpand' not handled in switch [-Wswitch]
    switch (AI.getKind()) {
            ^
2 warnings generated.
[171/926] Building CXX object lib/IRGen/CMakeFiles/swiftIRGen.dir/IRGenSIL.cpp.o
swift/lib/IRGen/IRGenSIL.cpp:1280:13: warning: enumeration value 'CoerceAndExpand' not handled in switch [-Wswitch]
    switch (AI.getKind()) {
            ^

https://bugs.swift.org/browse/SR-1157

David


(John McCall) #2

I'll get to it. It's harmless for now.

John.

···

On Apr 4, 2016, at 3:02 PM, David Farler via swift-dev <swift-dev@swift.org> wrote:
Just a heads up - the latest stable merge exposed a couple of switch warnings:

swift/lib/IRGen/GenFunc.cpp:1338:13: warning: enumeration value 'CoerceAndExpand' not handled in switch [-Wswitch]
   switch (AI.getKind()) {
           ^
swift/lib/IRGen/GenFunc.cpp:2916:13: warning: enumeration value 'CoerceAndExpand' not handled in switch [-Wswitch]
   switch (AI.getKind()) {
           ^
2 warnings generated.
[171/926] Building CXX object lib/IRGen/CMakeFiles/swiftIRGen.dir/IRGenSIL.cpp.o
swift/lib/IRGen/IRGenSIL.cpp:1280:13: warning: enumeration value 'CoerceAndExpand' not handled in switch [-Wswitch]
   switch (AI.getKind()) {
           ^

https://bugs.swift.org/browse/SR-1157