From: Daniel Müller Date: Thu, 30 Jun 2022 01:31:02 +0000 (-0700) Subject: [clang][BPF] Update comment to include TYPE_MATCH X-Git-Tag: upstream/15.0.7~3077 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70557eb3938a0bdc784c9ae14e84e9ad9914ebdc;p=platform%2Fupstream%2Fllvm.git [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 --- 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;