aboutsummaryrefslogtreecommitdiff
path: root/src/docs_writer.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-09-27 22:30:00 +0100
committergingerBill <bill@gingerbill.org>2022-09-27 22:30:00 +0100
commit35e70f4be17f4123ec25108d664864f13b38087e (patch)
tree58582e516b411cea6fafd9b92d16e04768f4e969 /src/docs_writer.cpp
parent0fe006157e6e6f07722bcf4eb7c51a8db07d008c (diff)
Add node data for union when using `intrinsics.type_convert_variants_to_pointers`
Diffstat (limited to 'src/docs_writer.cpp')
-rw-r--r--src/docs_writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp
index 1b8e1fc34..5246971ff 100644
--- a/src/docs_writer.cpp
+++ b/src/docs_writer.cpp
@@ -639,7 +639,7 @@ OdinDocTypeIndex odin_doc_type(OdinDocWriter *w, Type *type) {
doc_type.polmorphic_params = odin_doc_type(w, type->Union.polymorphic_params);
}
- if (type->Union.node) {
+ if (type->Union.node && type->Union.node->kind == Ast_UnionType) {
ast_node(ut, UnionType, type->Union.node);
if (ut->align) {
doc_type.custom_align = odin_doc_expr_string(w, ut->align);