File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
llvm/lib/Transforms/Instrumentation Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4589,13 +4589,15 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
45894589 Value *SrcShadow = getShadow (Src);
45904590
45914591 APInt MinVal =
4592- APInt::getSignedMinValue (Src->getType ()->getScalarSizeInBits ());
4592+ APInt::getSignedMinValue (Src->getType ()->getScalarSizeInBits ());
45934593 Value *MinValVec = ConstantInt::get (Src->getType (), MinVal);
45944594 Value *SrcIsMin = IRB.CreateICmp (CmpInst::ICMP_EQ, Src, MinValVec);
45954595
45964596 Value *PoisonedShadow = getPoisonedShadow (Src);
4597- Value *PoisonedIfIntMinShadow = IRB.CreateSelect (SrcIsMin, PoisonedShadow, SrcShadow);
4598- Value *Shadow = IRB.CreateSelect (IsIntMinPoison, PoisonedIfIntMinShadow, SrcShadow);
4597+ Value *PoisonedIfIntMinShadow =
4598+ IRB.CreateSelect (SrcIsMin, PoisonedShadow, SrcShadow);
4599+ Value *Shadow =
4600+ IRB.CreateSelect (IsIntMinPoison, PoisonedIfIntMinShadow, SrcShadow);
45994601
46004602 setShadow (&I, Shadow);
46014603 setOrigin (&I, getOrigin (&I, 0 ));
You can’t perform that action at this time.
0 commit comments