diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-12-06 23:55:34 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-12-06 23:55:34 +0000 |
commit | 0a6e09f67c719c318856be19d57e19972101f62c (patch) | |
tree | 58c515b1d595d43d6daea4d378f2dc0c2fc23a6f /lib/CodeGen/CGBlocks.cpp | |
parent | c57d158c2900185d7828a92ca8db7b877ef1a621 (diff) |
[analyzer] Avoid ProgramStateRef copy constructors.
Suggested by David Blaikie. ExplodedNode, CallEvent, and CheckerContext all
hang onto their ProgramState, so the accessors can return a reference to the
internal state rather than preemptively copying it. This helps avoid
temporary ProgramStateRefs, though local variables will still (correctly)
do an extra retain and release.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
0 files changed, 0 insertions, 0 deletions