Skip to content

We can't copy trivial structs #1128

@ChuanqiXu9

Description

@ChuanqiXu9

Reproducer:

struct S {
    int a;
    int b;
};

S getS(S);

S foo() {
    S s;
    s = getS(s);
    return s;
}

when we try to emit CIR for it, we will get

llvm_unreachable("NYI");

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions