Skip to content

Commit

Permalink
OriginPtr is aligned by getShadowOriginPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka authored Jul 18, 2024
1 parent 6903e38 commit 178527d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2505,7 +2505,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
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);
}
}
};
Expand Down

0 comments on commit 178527d

Please sign in to comment.