Explorar o código

Use `auto` for the CheckTypeOfConstantIsTypeType fn signature (#7089)

Dana Jansens hai 1 semana
pai
achega
744ab33484
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      toolchain/sem_ir/type.cpp

+ 2 - 1
toolchain/sem_ir/type.cpp

@@ -15,7 +15,8 @@ CARBON_DEFINE_ENUM_MASK_NAMES(TypeQualifiers) {
 };
 
 // Verify that the constant value's type is `TypeType` (or an error).
-static void CheckTypeOfConstantIsTypeType(File& file, ConstantId constant_id) {
+static auto CheckTypeOfConstantIsTypeType(File& file, ConstantId constant_id)
+    -> void {
   CARBON_CHECK(constant_id.is_constant(),
                "Canonicalizing non-constant type: {0}", constant_id);
   auto type_id =