aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-04 00:42:54 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-04 00:42:54 +0000
commit1e80aa49ec689d1937e54fb353d6626e0a58f0db (patch)
tree5188cc6b0cb0730f64ad703aa6dc362b8a350df5 /include/clang
parent69153db02015f6da287853d5a1a700685450a3e9 (diff)
Enhanced pretty-printing of undefined-argument errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Analysis/PathSensitive/GRExprEngine.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Analysis/PathSensitive/GRExprEngine.h b/include/clang/Analysis/PathSensitive/GRExprEngine.h
index 3ad87b2e75..3a4e358d66 100644
--- a/include/clang/Analysis/PathSensitive/GRExprEngine.h
+++ b/include/clang/Analysis/PathSensitive/GRExprEngine.h
@@ -91,7 +91,7 @@ protected:
typedef llvm::SmallPtrSet<NodeTy*,2> UndefStoresTy;
typedef llvm::SmallPtrSet<NodeTy*,2> BadDerefTy;
typedef llvm::SmallPtrSet<NodeTy*,2> BadCallsTy;
- typedef llvm::SmallPtrSet<NodeTy*,2> UndefArgsTy;
+ typedef llvm::DenseMap<NodeTy*, Expr*> UndefArgsTy;
typedef llvm::SmallPtrSet<NodeTy*,2> BadDividesTy;
typedef llvm::SmallPtrSet<NodeTy*,2> NoReturnCallsTy;
typedef llvm::SmallPtrSet<NodeTy*,2> UndefResultsTy;
@@ -209,7 +209,8 @@ public:
}
bool isUndefArg(const NodeTy* N) const {
- return N->isSink() && UndefArgs.count(const_cast<NodeTy*>(N)) != 0;
+ return N->isSink() &&
+ UndefArgs.find(const_cast<NodeTy*>(N)) != UndefArgs.end();
}
typedef BadDerefTy::iterator null_deref_iterator;