aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-08-21 17:27:52 +0300
committerGitHub <noreply@github.com>2022-08-21 17:27:52 +0300
commit02070ae26b872aa4a1b3da4c1820a4a360c7ee92 (patch)
treee9271c0fefbbfcba4ea4adb4ce182b378b92acc9 /src/codegen/llvm.zig
parent4a98385b0aa3808ab05a1ebfbc90fd0bcd97c0d9 (diff)
parent20d0018d79c25a0def440040eab2970e7a314130 (diff)
downloadzig-02070ae26b872aa4a1b3da4c1820a4a360c7ee92.tar.gz
zig-02070ae26b872aa4a1b3da4c1820a4a360c7ee92.zip
Merge pull request #12499 from Vexu/explain-why-called-at-comptime
stage2: add note about function call being comptime because of comptime only return type
Diffstat (limited to 'src/codegen/llvm.zig')
-rw-r--r--src/codegen/llvm.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index d50b463606..5c537cd5bc 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -3502,7 +3502,7 @@ pub const DeclGen = struct {
});
}
const union_obj = tv.ty.cast(Type.Payload.Union).?.data;
- const field_index = union_obj.tag_ty.enumTagFieldIndex(tag_and_val.tag, dg.module).?;
+ const field_index = tv.ty.unionTagFieldIndex(tag_and_val.tag, dg.module).?;
assert(union_obj.haveFieldTypes());
// Sometimes we must make an unnamed struct because LLVM does