carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
http://docs.carbon-lang.dev/
Other
32.24k stars 1.48k forks source link

Switch eval.cpp struct init style. #4011

Closed jonmeow closed 4 months ago

jonmeow commented 4 months ago

Adding designators in general consistent with #4009

With MakeConstantResult, leaning towards keeping SemIR::BoolLiteral{...} rather than templating MakeConstantResult in order to avoid having multiple MakeConstantResult implementations stamped out. But with TypedInt, removing the name since it's not necessary for compile.

Note, will be updating other files separately, just starting here since MakeConstantResult might be a bit of an edge case (with AddInst, I might go slightly more for a wrapper).