[llvm-branch-commits] [llvm] [AllocToken, Clang] Implement __builtin_infer_alloc_token() and llvm.alloc.token.id (PR #156842)

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Sep 30 22:50:27 PDT 2025


================
@@ -1498,6 +1498,24 @@ static void builtinAllocaAddrSpace(Sema &S, CallExpr *TheCall) {
   TheCall->setType(S.Context.getPointerType(RT));
 }
 
+static bool checkBuiltinInferAllocToken(Sema &S, CallExpr *TheCall) {
----------------
vitalybuka wrote:

Should it have test like Sema/arithmetic-fence-builtin.c or Sema/builtin-allow-runtime-check.c?

It would be easier to notice missing test coverage with smaller patches.


https://github.com/llvm/llvm-project/pull/156842


More information about the llvm-branch-commits mailing list