I just spent all day migrating my 30,000-line Swift project to 2.0 and was rewarded with this lone error. Any clue what it means? Is it yet another internal error?
Assertion failed: ((IGF.IGM.DataLayout.getTypeSizeInBits(coercionTy) == IGF.IGM.DataLayout.getTypeSizeInBits(paramTI.StorageType)) && "Coerced types should not differ in size!"), function emitDirectExternalParameter, file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.0.38.1/src/swift/lib/IRGen/IRGenSIL.cpp, line 908.
0 swift 0x0000000106f20e0b llvm::sys::PrintStackTrace(__sFILE*) + 43
1 swift 0x0000000106f2154b SignalHandler(int) + 379
2 libsystem_platform.dylib 0x00007fff94a83f1a _sigtramp + 26
3 libsystem_platform.dylib 0x0000000000000003 _sigtramp + 1800913155
4 libsystem_c.dylib 0x00007fff9c270b53 abort + 129
5 libsystem_c.dylib 0x00007fff9c238c39 basename + 0
6 swift 0x000000010506869d (anonymous namespace)::IRGenSILFunction::emitSILFunction() + 13693
7 swift 0x0000000105064d52 swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 498
8 swift 0x0000000104fb546c swift::irgen::IRGenModuleDispatcher::emitGlobalTopLevel() + 412
9 swift 0x000000010504b515 performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl*, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, swift::SourceFile*, unsigned int) + 821
10 swift 0x000000010504b926 swift::performIRGeneration(swift::IRGenOptions&, swift::SourceFile&, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, unsigned int) + 70
11 swift 0x0000000104f3b05f performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&) + 11663
12 swift 0x0000000104f380b3 frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 2515
13 swift 0x0000000104f3428f main + 1983
14 libdyld.dylib 0x00007fff988535c9 start + 1
15 libdyld.dylib 0x00000000000000a9 start + 1736100577