diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-09-18 23:09:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-09-18 23:09:54 +0000 |
commit | 7360fda1efd88fd28ca2882579676dbd8569c181 (patch) | |
tree | 923c21a0fa78f3ce6a44f56489f01e5e8c29adaf /lib/Analysis/BasicValueFactory.cpp | |
parent | 644f5fc35c9d093b2ae1e8f43cf5a70680b5945a (diff) |
Implement second part of PR 2600: NSError** parameter may be null, and should be checked before being dereferenced.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BasicValueFactory.cpp')
-rw-r--r-- | lib/Analysis/BasicValueFactory.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Analysis/BasicValueFactory.cpp b/lib/Analysis/BasicValueFactory.cpp index 8d737a9472..a9bb2cec4b 100644 --- a/lib/Analysis/BasicValueFactory.cpp +++ b/lib/Analysis/BasicValueFactory.cpp @@ -247,3 +247,8 @@ BasicValueFactory::getPersistentRValPair(const RVal& V1, const RVal& V2) { return P->getValue(); } +const RVal* BasicValueFactory::getPersistentRVal(RVal X) { + return &getPersistentRValWithData(X, 0).first; +} + + |