From 178527d113eb4a207c5a4ed20986ecd725991c84 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Thu, 18 Jul 2024 16:38:46 -0700 Subject: [PATCH] OriginPtr is aligned by getShadowOriginPtr --- llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 00c23bcc2175cc..9c48d9dfaea3d1 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -2505,7 +2505,7 @@ struct MemorySanitizerVisitor : public InstVisitor { void DoneAndStoreOrigin(TypeSize TS, Value *OriginPtr) { if (MSV->MS.TrackOrigins) { assert(Origin); - MSV->paintOrigin(IRB, Origin, OriginPtr, TS, Align(1)); + MSV->paintOrigin(IRB, Origin, OriginPtr, TS, kMinOriginAlignment); } } };