Skip to content

Commit

Permalink
Unify initialization and conversion logic (#3255)
Browse files Browse the repository at this point in the history
Combine the initialization, implicit conversion, and value category
conversion functions into a single function.

This substantially reduces the duplication between these steps, and
ensures that we support the same set of conversions in all these
contexts. This also fixes some issues where we would not use the proper
value representation for tuples and structs after performing implicit
conversions.
  • Loading branch information
zygoloid authored Oct 2, 2023
1 parent 7899154 commit fea6cf8
Show file tree
Hide file tree
Showing 74 changed files with 1,646 additions and 1,074 deletions.
3 changes: 3 additions & 0 deletions toolchain/check/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ cc_library(
srcs = [
"check.cpp",
"context.cpp",
"convert.cpp",
"declaration_name_stack.cpp",
"node_block_stack.cpp",
] +
Expand All @@ -43,8 +44,10 @@ cc_library(
hdrs = [
"check.h",
"context.h",
"convert.h",
"declaration_name_stack.h",
"node_block_stack.h",
"pending_block.h",
],
deps = [
":node_stack",
Expand Down
Loading

0 comments on commit fea6cf8

Please sign in to comment.