[clang][BPF] Update comment to include TYPE_MATCH
authorDaniel Müller <deso@posteo.net>
Thu, 30 Jun 2022 01:31:02 +0000 (18:31 -0700)
committerYonghong Song <yhs@fb.com>
Thu, 30 Jun 2022 01:32:06 +0000 (18:32 -0700)
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

index 9ebd42b..79420cc 100644 (file)
@@ -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(*(<type> *)0, flag);
   //   2. <type> var;