aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker
diff options
context:
space:
mode:
authorTom Care <tom.care@uqconnect.edu.au>2010-08-27 22:50:47 +0000
committerTom Care <tom.care@uqconnect.edu.au>2010-08-27 22:50:47 +0000
commit9edd4d0f73b81baaa7153982bf716949a5b1b926 (patch)
tree297990573e9b640407fd731b915af38976614d01 /lib/Checker
parent6d0e6ce200aa06b06f0e9b493ed365bbe2982cee (diff)
Added checking of (x == x) and (x != x) to IdempotentOperationChecker and updated test cases flagged by it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker')
-rw-r--r--lib/Checker/IdempotentOperationChecker.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Checker/IdempotentOperationChecker.cpp b/lib/Checker/IdempotentOperationChecker.cpp
index 35fb83e877..8a9e333ce5 100644
--- a/lib/Checker/IdempotentOperationChecker.cpp
+++ b/lib/Checker/IdempotentOperationChecker.cpp
@@ -210,6 +210,8 @@ void IdempotentOperationChecker::PreVisitBinaryOperator(
case BO_Xor:
case BO_LOr:
case BO_LAnd:
+ case BO_EQ:
+ case BO_NE:
if (LHSVal != RHSVal || LHSContainsFalsePositive
|| RHSContainsFalsePositive)
break;