summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2014-02-27 13:13:59 +0000
committerKostya Serebryany <kcc@google.com>2014-02-27 13:13:59 +0000
commitcb3f6e164b1da340e290dedce07c1886ee861459 (patch)
tree30e0d75c1608bb6ee523000cb0e5cecc0e268637 /llvm/lib/Transforms
parentec34665de93d3142a0346997cce3c37da14ff04f (diff)
downloadbcm5719-llvm-cb3f6e164b1da340e290dedce07c1886ee861459.tar.gz
bcm5719-llvm-cb3f6e164b1da340e290dedce07c1886ee861459.zip
[asan] fix a pair of silly typos
llvm-svn: 202391
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index e971e6783f9..27c97f25044 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -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;
OpenPOWER on IntegriCloud