@@ -1527,22 +1527,22 @@ void AddressSanitizer::getInterestingMemoryOperands(
1527
1527
return ;
1528
1528
1529
1529
if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
1530
- if (!ClInstrumentReads || ignoreAccess (LI , LI->getPointerOperand ()))
1530
+ if (!ClInstrumentReads || ignoreAccess (I , LI->getPointerOperand ()))
1531
1531
return ;
1532
1532
Interesting.emplace_back (I, LI->getPointerOperandIndex (), false ,
1533
1533
LI->getType (), LI->getAlign ());
1534
1534
} else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
1535
- if (!ClInstrumentWrites || ignoreAccess (LI , SI->getPointerOperand ()))
1535
+ if (!ClInstrumentWrites || ignoreAccess (I , SI->getPointerOperand ()))
1536
1536
return ;
1537
1537
Interesting.emplace_back (I, SI->getPointerOperandIndex (), true ,
1538
1538
SI->getValueOperand ()->getType (), SI->getAlign ());
1539
1539
} else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(I)) {
1540
- if (!ClInstrumentAtomics || ignoreAccess (LI , RMW->getPointerOperand ()))
1540
+ if (!ClInstrumentAtomics || ignoreAccess (I , RMW->getPointerOperand ()))
1541
1541
return ;
1542
1542
Interesting.emplace_back (I, RMW->getPointerOperandIndex (), true ,
1543
1543
RMW->getValOperand ()->getType (), None);
1544
1544
} else if (AtomicCmpXchgInst *XCHG = dyn_cast<AtomicCmpXchgInst>(I)) {
1545
- if (!ClInstrumentAtomics || ignoreAccess (LI , XCHG->getPointerOperand ()))
1545
+ if (!ClInstrumentAtomics || ignoreAccess (I , XCHG->getPointerOperand ()))
1546
1546
return ;
1547
1547
Interesting.emplace_back (I, XCHG->getPointerOperandIndex (), true ,
1548
1548
XCHG->getCompareOperand ()->getType (), None);
@@ -1556,7 +1556,7 @@ void AddressSanitizer::getInterestingMemoryOperands(
1556
1556
return ;
1557
1557
1558
1558
auto BasePtr = CI->getOperand (OpOffset);
1559
- if (ignoreAccess (LI , BasePtr))
1559
+ if (ignoreAccess (I , BasePtr))
1560
1560
return ;
1561
1561
Type *Ty = IsWrite ? CI->getArgOperand (0 )->getType () : CI->getType ();
1562
1562
MaybeAlign Alignment = Align (1 );
@@ -1568,7 +1568,7 @@ void AddressSanitizer::getInterestingMemoryOperands(
1568
1568
} else {
1569
1569
for (unsigned ArgNo = 0 ; ArgNo < CI->arg_size (); ArgNo++) {
1570
1570
if (!ClInstrumentByval || !CI->isByValArgument (ArgNo) ||
1571
- ignoreAccess (LI , CI->getArgOperand (ArgNo)))
1571
+ ignoreAccess (I , CI->getArgOperand (ArgNo)))
1572
1572
continue ;
1573
1573
Type *Ty = CI->getParamByValType (ArgNo);
1574
1574
Interesting.emplace_back (I, ArgNo, false , Ty, Align (1 ));
0 commit comments