[compiler-rt] [scudo] Small cleanup of memory tagging code part 2. (PR #168807)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 20 13:30:36 PST 2025


================
@@ -689,16 +688,15 @@ class Allocator {
       Base = untagPointer(Base);
     const uptr From = Base;
     const uptr To = Base + Size;
-    bool MayHaveTaggedPrimary =
-        allocatorSupportsMemoryTagging<AllocatorConfig>() &&
-        systemSupportsMemoryTagging();
+    const Options Options = Primary.Options.load();
+    bool MayHaveTaggedPrimary = useMemoryTagging<AllocatorConfig>(Options);
----------------
vitalybuka wrote:

could useMemoryTagging be a constexpr  ?

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


More information about the llvm-commits mailing list