[NFC][Alignment] Simplify code in MemorySanitizer

This commit is contained in:
Guillaume Chatelet 2022-06-13 13:36:22 +00:00
parent 4296f91323
commit 45a5cd41e5
1 changed files with 1 additions and 1 deletions

View File

@ -1881,7 +1881,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
Type *ShadowTy = getShadowTy(&I);
Value *Addr = I.getPointerOperand();
Value *ShadowPtr = nullptr, *OriginPtr = nullptr;
const Align Alignment = assumeAligned(I.getAlignment());
const Align Alignment = I.getAlign();
if (PropagateShadow) {
std::tie(ShadowPtr, OriginPtr) =
getShadowOriginPtr(Addr, IRB, ShadowTy, Alignment, /*isStore*/ false);