[llvm-branch-commits] [llvm] 405ea2b - [msan] Replace 8 by kShadowTLSAlignment

Jianzhou Zhao via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Dec 1 17:15:50 PST 2020


Author: Jianzhou Zhao
Date: 2020-12-02T01:09:49Z
New Revision: 405ea2b93d96f7014e60eeb84040b35372d448e7

URL: https://github.com/llvm/llvm-project/commit/405ea2b93d96f7014e60eeb84040b35372d448e7
DIFF: https://github.com/llvm/llvm-project/commit/405ea2b93d96f7014e60eeb84040b35372d448e7.diff

LOG: [msan] Replace 8 by kShadowTLSAlignment

Reviewed-by: eugenis

Differential Revision: https://reviews.llvm.org/D92275

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
index 188403b54b53..5ff4c45f681c 100644
--- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -3708,7 +3708,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
       (void)Store;
       assert(Size != 0 && Store != nullptr);
       LLVM_DEBUG(dbgs() << "  Param:" << *Store << "\n");
-      ArgOffset += alignTo(Size, 8);
+      ArgOffset += alignTo(Size, kShadowTLSAlignment);
     }
     LLVM_DEBUG(dbgs() << "  done with call args\n");
 


        


More information about the llvm-branch-commits mailing list