commit | bb7a3d95821857c9d94fe3198c55467e3fbcfb93 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Sep 18 23:09:54 2008 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Sep 18 23:09:54 2008 +0000 |
tree | 923c21a0fa78f3ce6a44f56489f01e5e8c29adaf | |
parent | 96ced7b0b1e512d86ef6c3d32b00ce8aeb24ebdf [diff] [blame] |
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
diff --git a/lib/Analysis/BasicValueFactory.cpp b/lib/Analysis/BasicValueFactory.cpp index 8d737a9..a9bb2ce 100644 --- a/lib/Analysis/BasicValueFactory.cpp +++ b/lib/Analysis/BasicValueFactory.cpp
@@ -247,3 +247,8 @@ return P->getValue(); } +const RVal* BasicValueFactory::getPersistentRVal(RVal X) { + return &getPersistentRValWithData(X, 0).first; +} + +