mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Basic SemIR partial support (#5736)
This adds something similar to the level of `const` support - that it's a type, but not the conversions and limitations on usage that are needed. --------- Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
This commit is contained in:
co-authored by
Chandler Carruth
parent
49212feac6
commit
b39a0f0c8c
@@ -167,6 +167,11 @@ auto EvalConstantInst(Context& context, SemIR::ConstType inst)
|
||||
return ConstantEvalResult::NewSamePhase(inst);
|
||||
}
|
||||
|
||||
auto EvalConstantInst(Context& /*context*/, SemIR::PartialType inst)
|
||||
-> ConstantEvalResult {
|
||||
return ConstantEvalResult::NewSamePhase(inst);
|
||||
}
|
||||
|
||||
auto EvalConstantInst(Context& context, SemIR::Converted inst)
|
||||
-> ConstantEvalResult {
|
||||
// A conversion evaluates to the result of the conversion.
|
||||
|
||||
Reference in New Issue
Block a user