Forráskód Böngészése

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

Dana Jansens 1 hete
szülő
commit
744ab33484
1 módosított fájl, 2 hozzáadás és 1 törlés
  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 =