diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-05-01 01:56:06 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-05-30 17:11:14 -0400 |
| commit | 5e1003bc81466b8ca0e3a3adb613bac8f34f2712 (patch) | |
| tree | ef7de5e4cb6dfeaad96fee7b935e1459a6dce063 /src/analyze.cpp | |
| parent | 0ccd91faea5ec27a1dce9d3bae84e1feca7fc0ea (diff) | |
| download | zig-5e1003bc81466b8ca0e3a3adb613bac8f34f2712.tar.gz zig-5e1003bc81466b8ca0e3a3adb613bac8f34f2712.zip | |
no-copy semantics for basic runtime function call variable init
```zig
export fn entry() void {
var x: Foo = foo();
}
```
```llvm
define void @entry() #2 !dbg !37 {
Entry:
%x = alloca %Foo, align 4
call fastcc void @foo(%Foo* sret %x), !dbg !48
call void @llvm.dbg.declare(metadata %Foo* %x, metadata !41, metadata !DIExpression()), !dbg !49
ret void, !dbg !50
}
```
Diffstat (limited to 'src/analyze.cpp')
0 files changed, 0 insertions, 0 deletions
