[compiler-rt] [scudo] Move the chunk update into functions (PR #83493)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 4 17:29:13 PDT 2024


================
@@ -1225,6 +1268,36 @@ class Allocator {
     }
   }
 
+  NOINLINE void *reTagBlock(const Options &Options, void *TaggedPtr,
+                            void *HeaderTaggedPtr,
+                            Chunk::UnpackedHeader *Header, const uptr Size,
+                            bool BypassQuarantine) {
+    DCHECK(useMemoryTagging<AllocatorConfig>(Options));
+    void *Ptr = HeaderTaggedPtr;
----------------
pcc wrote:

Get rid of this line and just call the argument `Ptr`.

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


More information about the llvm-commits mailing list