Skip to content

Commit

Permalink
[clang][BPF] Update comment to include TYPE_MATCH
Browse files Browse the repository at this point in the history
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
  • Loading branch information
d-e-s-o authored and yonghong-song committed Jun 30, 2022
1 parent e057f25 commit 70557eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaChecking.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 70557eb

Please sign in to comment.