[PATCH] D92275: [msan] Replace 8 by kShadowTLSAlignment

stephan.yichao.zhao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 28 21:05:51 PST 2020


stephan.yichao.zhao created this revision.
stephan.yichao.zhao added a reviewer: eugenis.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
stephan.yichao.zhao requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92275

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


Index: llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
===================================================================
--- llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -3704,7 +3704,7 @@
       (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");
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92275.308198.patch
Type: text/x-patch
Size: 555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201129/88a6af3b/attachment.bin>


More information about the llvm-commits mailing list