Skip to content

Commit 7565480

Browse files
committed
Minimize diff
1 parent 0dbdc24 commit 7565480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4071,12 +4071,12 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
40714071
ShadowArgs.append(1, SrcShadowPtr);
40724072
ShadowArgs.append(1, Mask);
40734073

4074-
CallInst *CI;
4074+
CallInst *CI =
4075+
IRB.CreateIntrinsic(I.getType(), I.getIntrinsicID(), ShadowArgs);
40754076
// The AVX masked load intrinsics do not have integer variants. We use the
40764077
// floating-point variants, and assume that the intrinsic will happily copy
40774078
// the shadows even if they are interpreted as "invalid" floating-point
40784079
// values (NaN etc.).
4079-
CI = IRB.CreateIntrinsic(I.getType(), I.getIntrinsicID(), ShadowArgs);
40804080
setShadow(&I, IRB.CreateBitCast(CI, getShadowTy(&I)));
40814081

40824082
if (!MS.TrackOrigins)

0 commit comments

Comments
 (0)