From 70557eb3938a0bdc784c9ae14e84e9ad9914ebdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20M=C3=BCller?= Date: Wed, 29 Jun 2022 18:31:02 -0700 Subject: [PATCH] [clang][BPF] Update comment to include TYPE_MATCH D126838 added support for the TYPE_MATCH compile-once run-everywhere relocation to LLVM proper. On the clang side no changes are necessary, other than the adjustment of a comment to mention this relocation as well. This change takes care of that. Differential Revision: https://reviews.llvm.org/D126839 --- clang/lib/Sema/SemaChecking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 9ebd42b..79420cc 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -3254,7 +3254,7 @@ static bool isValidBPFPreserveTypeInfoArg(Expr *Arg) { if (ArgType->getAsPlaceholderType()) return false; - // for TYPE_EXISTENCE/TYPE_SIZEOF reloc type + // for TYPE_EXISTENCE/TYPE_MATCH/TYPE_SIZEOF reloc type // format: // 1. __builtin_preserve_type_info(*( *)0, flag); // 2. var; -- 2.7.4