mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
[asan] fix a pair of silly typos
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
124bbea6cd
commit
9aef4445a3
@ -673,7 +673,7 @@ static bool isInterestingPointerComparisonOrSubtraction(Instruction *I) {
|
|||||||
if (!Cmp->isRelational())
|
if (!Cmp->isRelational())
|
||||||
return false;
|
return false;
|
||||||
} else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
|
} else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
|
||||||
if (!BO->getOpcode() == Instruction::Sub)
|
if (BO->getOpcode() != Instruction::Sub)
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
@ -1285,7 +1285,7 @@ bool AddressSanitizer::runOnFunction(Function &F) {
|
|||||||
if (!TempsToInstrument.insert(Addr))
|
if (!TempsToInstrument.insert(Addr))
|
||||||
continue; // We've seen this temp in the current BB.
|
continue; // We've seen this temp in the current BB.
|
||||||
}
|
}
|
||||||
} else if (ClInstrumentAtomics &&
|
} else if (ClInvalidPointerPairs &&
|
||||||
isInterestingPointerComparisonOrSubtraction(BI)) {
|
isInterestingPointerComparisonOrSubtraction(BI)) {
|
||||||
PointerComparisonsOrSubtracts.push_back(BI);
|
PointerComparisonsOrSubtracts.push_back(BI);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user