[llvm] r202391 - [asan] fix a pair of silly typos
Kostya Serebryany
kcc at google.com
Thu Feb 27 05:14:00 PST 2014
Author: kcc
Date: Thu Feb 27 07:13:59 2014
New Revision: 202391
URL: http://llvm.org/viewvc/llvm-project?rev=202391&view=rev
Log:
[asan] fix a pair of silly typos
Modified:
llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=202391&r1=202390&r2=202391&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Thu Feb 27 07:13:59 2014
@@ -673,7 +673,7 @@ static bool isInterestingPointerComparis
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(Fun
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;
More information about the llvm-commits
mailing list