]> granicus.if.org Git - clang/commitdiff
Fix condition in LocationCheck::classof(). Thanks to Marius Wachtler for pointing...
authorTed Kremenek <kremenek@apple.com>
Mon, 16 Nov 2009 20:06:54 +0000 (20:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 16 Nov 2009 20:06:54 +0000 (20:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88949 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/ProgramPoint.h

index 75ae83f0a67c03e61ce1e2e1941a9d139ef05008..78827dfabe2fb96bb87f0bb01820ab966ad4fc13 100644 (file)
@@ -221,7 +221,7 @@ protected:
     
   static bool classof(const ProgramPoint *location) {
     unsigned k = location->getKind();
-    return k == PreLoadKind || PreStoreKind;
+    return k == PreLoadKind || k == PreStoreKind;
   }
 };