# no-copy semantics for function forwarding · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ccce3d852681bfe60bce92a6766b4f431dd73571)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ccce3d852681bfe60bce92a6766b4f431dd73571

Requested commit: ccce3d852681bfe60bce92a6766b4f431dd73571

Commit: ccce3d852681bfe60bce92a6766b4f431dd73571

Tree: 521bf62dffb4d1c95be881a6c8c3d7208124c2eb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

````
no-copy semantics for function forwarding

```zig
fn foo() Foo {
    return bar();
}
```

```llvm
define internal fastcc void @foo(%Foo* nonnull sret) unnamed_addr #2 !dbg !48 {
Entry:
  call fastcc void @bar(%Foo* sret %0), !dbg !52
  ret void, !dbg !54
}
```

````

## Parents

- [461382ae941e235ad75a6b3d00e05e5369baa98a](https://git.cafe/gitcafe/zig/commit/461382ae941e235ad75a6b3d00e05e5369baa98a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ccce3d852681bfe60bce92a6766b4f431dd73571?format=markdown)
