Skip to content

Crash in LLVM when compiling SwiftCompilerSources on Windows with a 5.10 toolchain #73253

Open
@eeckstein

Description

@eeckstein

Description

The problem occurs when calling the C++ imported function from public func getFunctionType(withNoEscape: Bool) -> Type in Type.swift.

Crashes in LLVM with:

Attribute 'zeroext' applied to incompatible type!
  call void @"?getFunctionTypeWithNoEscape@BridgedType@@QEBA?AU1@_N@Z"(ptr %3, ptr zeroext sret(%struct.BridgedType) %4, i1 %0)

Reproduction

Once #73247 lands, revert the "SwiftCompilerSources: workaround a compiler crash on windows by disabling convert_function simplification" commit of this PR

Expected behavior

no crash

Environment

reproducible with top-of main on Windows

Additional information

No response

Metadata

Metadata

Assignees

Labels

CodeGenWindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.c++ interopFeature: Interoperability with C++c++ to swiftFeature → c++ interop: c++ to swiftcrashBug: A crash, i.e., an abnormal termination of softwareswift 5.10

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions