diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-08-05 23:23:05 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-08-05 23:26:11 -0700 |
| commit | 7e9b23e6dce4d87615acd635f3731731a8601d39 (patch) | |
| tree | 392b32ff570328a8fcd984013ad844b063beaa77 /src/codegen/llvm.zig | |
| parent | c7dc451a2a06a0ade0bb44a48cb6e5cde6e237df (diff) | |
| download | zig-7e9b23e6dce4d87615acd635f3731731a8601d39.tar.gz zig-7e9b23e6dce4d87615acd635f3731731a8601d39.zip | |
Sema: respect requiresComptime of function return types
When doing a function call, if the return type requires comptime, the
function is analyzed as an inline/comptime call.
There is an important TODO here. I will reproduce the comment from this
commit:
> In the case of a comptime/inline function call of a generic function,
> the function return type needs to be the resolved return type based on
> the function parameter type expressions being evaluated with comptime arguments
> passed in. Otherwise, it ends up being .generic_poison and failing the
> comptime/inline function call analysis.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions
