Skip to content

Commit 433f6bf

Browse files
author
Davide Italiano
committed
[GenDecl] XCOFF should be treated like COFF.
Fixes a build error: /Users/local/swift/swift/lib/IRGen/GenDecl.cpp:1323:11: error: enumeration value 'XCOFF' not handled in switch [-Werror,-Wswitch] All the other functions in this file group XCOFF and COFF together so I guess this is a reasonable thing to do.
1 parent db3b1e1 commit 433f6bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,7 @@ static std::string getDynamicReplacementSomeSection(IRGenModule &IGM) {
13311331
case llvm::Triple::Wasm:
13321332
sectionName = "swift5_replac2";
13331333
break;
1334+
case llvm::Triple::XCOFF:
13341335
case llvm::Triple::COFF:
13351336
sectionName = ".sw5reps$B";
13361337
break;

0 commit comments

Comments
 (0)