Skip to content

Commit a74f1f5

Browse files
committed
Increase alignment with Florian's feedback
1 parent 324be7d commit a74f1f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4294,11 +4294,9 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
42944294
Value *Src = I.getArgOperand(numArgs - 1);
42954295
assert(Src->getType()->isPointerTy() && "Source is not a pointer!");
42964296

4297-
const Align Alignment = Align(1);
4298-
42994297
Type *SrcShadowTy = getShadowTy(Src);
43004298
auto [SrcShadowPtr, SrcOriginPtr] =
4301-
getShadowOriginPtr(Src, IRB, SrcShadowTy, Alignment, /*isStore*/ false);
4299+
getShadowOriginPtr(Src, IRB, SrcShadowTy, Align(1), /*isStore*/ false);
43024300
ShadowArgs.push_back(SrcShadowPtr);
43034301

43044302
// The NEON vector load instructions handled by this function all have

0 commit comments

Comments
 (0)