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");
 


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to