mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
[asan] fix a pair of silly typos
llvm-svn: 202391
This commit is contained in:
parent
71b9995519
commit
1d5ff228f0
@ -673,7 +673,7 @@ static bool isInterestingPointerComparisonOrSubtraction(Instruction *I) {
|
||||
if (!Cmp->isRelational())
|
||||
return false;
|
||||
} else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
|
||||
if (!BO->getOpcode() == Instruction::Sub)
|
||||
if (BO->getOpcode() != Instruction::Sub)
|
||||
return false;
|
||||
} else {
|
||||
return false;
|
||||
@ -1285,7 +1285,7 @@ bool AddressSanitizer::runOnFunction(Function &F) {
|
||||
if (!TempsToInstrument.insert(Addr))
|
||||
continue; // We've seen this temp in the current BB.
|
||||
}
|
||||
} else if (ClInstrumentAtomics &&
|
||||
} else if (ClInvalidPointerPairs &&
|
||||
isInterestingPointerComparisonOrSubtraction(BI)) {
|
||||
PointerComparisonsOrSubtracts.push_back(BI);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user