[cfe-commits] r88949 - /cfe/trunk/include/clang/Analysis/ProgramPoint.h

Ted Kremenek kremenek at apple.com
Mon Nov 16 12:06:54 PST 2009


Author: kremenek
Date: Mon Nov 16 14:06:54 2009
New Revision: 88949

URL: http://llvm.org/viewvc/llvm-project?rev=88949&view=rev
Log:
Fix condition in LocationCheck::classof().  Thanks to Marius Wachtler for pointing this out!

Modified:
    cfe/trunk/include/clang/Analysis/ProgramPoint.h

Modified: cfe/trunk/include/clang/Analysis/ProgramPoint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/ProgramPoint.h?rev=88949&r1=88948&r2=88949&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/ProgramPoint.h (original)
+++ cfe/trunk/include/clang/Analysis/ProgramPoint.h Mon Nov 16 14:06:54 2009
@@ -221,7 +221,7 @@
     
   static bool classof(const ProgramPoint *location) {
     unsigned k = location->getKind();
-    return k == PreLoadKind || PreStoreKind;
+    return k == PreLoadKind || k == PreStoreKind;
   }
 };
   





More information about the cfe-commits mailing list