diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-11-16 20:06:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-11-16 20:06:54 +0000 |
commit | 9dc2d26fdc1150b35f7951bef4540c44fdee063f (patch) | |
tree | 6ff1077c16f14ffbadb35cbdbb54f2c15e0fc5da | |
parent | 9b32e22ad102702c95d9d0db54d90012a2510de5 (diff) | |
download | bcm5719-llvm-9dc2d26fdc1150b35f7951bef4540c44fdee063f.tar.gz bcm5719-llvm-9dc2d26fdc1150b35f7951bef4540c44fdee063f.zip |
Fix condition in LocationCheck::classof(). Thanks to Marius Wachtler for pointing this out!
llvm-svn: 88949
-rw-r--r-- | clang/include/clang/Analysis/ProgramPoint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Analysis/ProgramPoint.h b/clang/include/clang/Analysis/ProgramPoint.h index 75ae83f0a67..78827dfabe2 100644 --- a/clang/include/clang/Analysis/ProgramPoint.h +++ b/clang/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; } }; |