[llvm-branch-commits] [clang] [Clang] Introduce -fsanitize=alloc-token (PR #156839)

Florian Mayer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Sep 9 15:46:54 PDT 2025


================
@@ -2367,6 +2371,16 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
     }
   }
 
+  if (const auto *Arg = Args.getLastArg(options::OPT_falloc_token_max_EQ)) {
+    StringRef S = Arg->getValue();
+    uint64_t Value = 0;
+    if (S.getAsInteger(0, Value)) {
----------------
fmayer wrote:

remove braces

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


More information about the llvm-branch-commits mailing list