mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 21:41:27 +01:00
Support for float <-> float conversions. (#7279)
Implement support for floating-point <-> floating-point type conversions as described in https://github.com/carbon-language/carbon-lang/pull/820 and https://github.com/carbon-language/carbon-lang/pull/845. Value-preserving conversions are implicit; narrowing conversions require explicit `as`. Assisted-by: Gemini via Antigravity
This commit is contained in:
@@ -606,8 +606,9 @@ auto LookupCppImpl(Context& context, SemIR::LocId loc_id,
|
||||
return BuildCppRangeForIterateWitness(
|
||||
context, loc_id, query_self_const_id, query_specific_interface_id);
|
||||
|
||||
// IntFitsIn is for Carbon integer types only.
|
||||
// *FitsIn are implemented only by Carbon primitive types.
|
||||
case SemIR::CoreInterface::IntFitsIn:
|
||||
case SemIR::CoreInterface::FloatFitsIn:
|
||||
return SemIR::InstId::None;
|
||||
|
||||
case SemIR::CoreInterface::Unknown:
|
||||
|
||||
Reference in New Issue
Block a user