aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/ProgramPoint.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-11-16 20:06:54 +0000
committerTed Kremenek <kremenek@apple.com>2009-11-16 20:06:54 +0000
commitd651141308a777d60ff98309d21e045bb936f8b7 (patch)
tree615193644b9cbaddf6390b8c101554b2acc24059 /include/clang/Analysis/ProgramPoint.h
parentab7ae95c46f288ac52974aa60334a9575f9a850c (diff)
Fix condition in LocationCheck::classof(). Thanks to Marius Wachtler for pointing this out!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/ProgramPoint.h')
-rw-r--r--include/clang/Analysis/ProgramPoint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Analysis/ProgramPoint.h b/include/clang/Analysis/ProgramPoint.h
index 75ae83f0a6..78827dfabe 100644
--- a/include/clang/Analysis/ProgramPoint.h
+++ b/include/clang/Analysis/ProgramPoint.h
@@ -221,7 +221,7 @@ protected:
static bool classof(const ProgramPoint *location) {
unsigned k = location->getKind();
- return k == PreLoadKind || PreStoreKind;
+ return k == PreLoadKind || k == PreStoreKind;
}
};