[llvm] 2db9256 - [NFC][HWASAN] Fix comment

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 29 17:56:49 PDT 2023


Author: Vitaly Buka
Date: 2023-04-29T17:51:19-07:00
New Revision: 2db925659ed52b7d3898f88c99ce2e43274605b2

URL: https://github.com/llvm/llvm-project/commit/2db925659ed52b7d3898f88c99ce2e43274605b2
DIFF: https://github.com/llvm/llvm-project/commit/2db925659ed52b7d3898f88c99ce2e43274605b2.diff

LOG: [NFC][HWASAN] Fix comment

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
index 60bd8121b4fe..114f836d99e9 100644
--- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
@@ -1350,7 +1350,7 @@ bool HWAddressSanitizer::instrumentStack(memtag::StackInfo &SInfo,
     auto TagEnd = [&](Instruction *Node) {
       IRB.SetInsertPoint(Node);
       // When untagging, use the `AlignedSize` because we need to set the tags
-      // for the entire alloca to zero. If we used `Size` here, we would
+      // for the entire alloca to original. If we used `Size` here, we would
       // keep the last granule tagged, and store zero in the last byte of the
       // last granule, due to how short granules are implemented.
       tagAlloca(IRB, AI, UARTag, AlignedSize);


        


More information about the llvm-commits mailing list