aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/ProgramPoint.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-03-21 19:45:08 +0000
committerAnna Zaks <ganna@apple.com>2012-03-21 19:45:08 +0000
commitfc2e153444c19ac0b881ad8fd4387f3495192ec6 (patch)
tree626384a7000f8f12dcce5736e9b4d4322f1ce35d /clang/lib/Analysis/ProgramPoint.cpp
parent6797d6ee237ab6903fc526c66e69a8a159556860 (diff)
downloadllvm-fc2e153444c19ac0b881ad8fd4387f3495192ec6.zip
llvm-fc2e153444c19ac0b881ad8fd4387f3495192ec6.tar.gz
llvm-fc2e153444c19ac0b881ad8fd4387f3495192ec6.tar.bz2
[analyzer] Malloc: Utter the name of the leaked variable.
Specifically, we use the last store of the leaked symbol in the leak diagnostic. (No support for struct fields since the malloc checker doesn't track those yet.) + Infrastructure to track the regions used in store evaluations. This approach is more precise than iterating the store to obtain the region bound to the symbol, which is used in RetainCount checker. The region corresponds to what is uttered in the code in the last store and we do not rely on the store implementation to support this functionality. llvm-svn: 153212
Diffstat (limited to 'clang/lib/Analysis/ProgramPoint.cpp')
-rw-r--r--clang/lib/Analysis/ProgramPoint.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Analysis/ProgramPoint.cpp b/clang/lib/Analysis/ProgramPoint.cpp
index 3a0bbd5..3f711b4 100644
--- a/clang/lib/Analysis/ProgramPoint.cpp
+++ b/clang/lib/Analysis/ProgramPoint.cpp
@@ -34,8 +34,6 @@ ProgramPoint ProgramPoint::getProgramPoint(const Stmt *S, ProgramPoint::Kind K,
return PostLoad(S, LC, tag);
case ProgramPoint::PreStoreKind:
return PreStore(S, LC, tag);
- case ProgramPoint::PostStoreKind:
- return PostStore(S, LC, tag);
case ProgramPoint::PostLValueKind:
return PostLValue(S, LC, tag);
case ProgramPoint::PostPurgeDeadSymbolsKind: