From 153cf02f4c07fc814d4a9bad9d27f20ad0b11aee Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 3 Sep 2025 10:34:13 -0700 Subject: [PATCH] [Support] Fix copy-paste errors in YAMLTraits.h has_MappingEnumInputTraits and its EmptyContext specialization define Signature_validate to check for a member function named enumInput. Note that in other YAML traits, Signature_foo is used to test the presence of member method foo. This patch fixes these copy-paste errors. --- llvm/include/llvm/Support/YAMLTraits.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/Support/YAMLTraits.h b/llvm/include/llvm/Support/YAMLTraits.h index 07ac080d2c235..7aeecdee0368f 100644 --- a/llvm/include/llvm/Support/YAMLTraits.h +++ b/llvm/include/llvm/Support/YAMLTraits.h @@ -406,9 +406,9 @@ template struct has_MappingValidateTraits { // Test if MappingContextTraits::enumInput() is defined on type T. template struct has_MappingEnumInputTraits { - using Signature_validate = void (*)(class IO &, T &); + using Signature_enumInput = void (*)(class IO &, T &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; @@ -416,9 +416,9 @@ template struct has_MappingEnumInputTraits { // Test if MappingTraits::enumInput() is defined on type T. template struct has_MappingEnumInputTraits { - using Signature_validate = void (*)(class IO &, T &); + using Signature_enumInput = void (*)(class IO &, T &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; };