Index: lib/AST/MicrosoftMangle.cpp =================================================================== --- lib/AST/MicrosoftMangle.cpp +++ lib/AST/MicrosoftMangle.cpp @@ -2130,10 +2130,12 @@ // them.) switch (CC) { - default: - llvm_unreachable("Unsupported CC for mangling"); + llvm::errs() << "Unsupported CC for mangling: " << CC << ".\n"; case CC_Win64: case CC_X86_64SysV: + // NOTE: SwiftCC should have its own mangling specifier. + // For now, don't do anything special and treat SwiftCC like __cdecl. + case CC_Swift: case CC_C: Out << 'A'; break; case CC_X86Pascal: Out << 'C'; break; case CC_X86ThisCall: Out << 'E'; break;