Skip to content

Metadata for C++ foreign reference types on Windows isn't emitted #82643

@egorzhdan

Description

@egorzhdan

Description

This prevents someone from using foreign reference types on Windows:

swift/lib/IRGen/GenMeta.cpp

Lines 6881 to 6884 in 1ceeb70

void emitInitializeMetadata(IRGenFunction &IGF, llvm::Value *metadata,
MetadataDependencyCollector *collector) {
llvm_unreachable("Not implemented for foreign reference types.");
}

Reproduction

Try to use a C++ reference-counted type on Windows.

Expected behavior

Code compiles

Environment

Windows

Additional information

No response

Metadata

Metadata

Assignees

Labels

WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.c++ interopFeature: Interoperability with C++

Type

No type

Projects

Status

TODO

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions