commit | 1831bd29572b6a7243da73d9606209190c0217de | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Sun May 27 15:32:10 2012 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Sun May 27 15:32:10 2012 +0000 |
tree | 059a8afd76c0cb0648f7e6980654a8f04f1b9909 | |
parent | ccc4edf662fe62a060e503e55ff80cd0ea5d7db6 [diff] |
Pass ProgramStateRef by reference. Retain + Release on a ref counted pointer is cheap, but not free (it adds a function call in this case). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157534 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h index 46fbb88..40969d3 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
@@ -151,7 +151,7 @@ static void Profile(llvm::FoldingSetNodeID &ID, const ProgramPoint &Loc, - ProgramStateRef state, + const ProgramStateRef &state, bool IsSink) { ID.Add(Loc); ID.AddPointer(state.getPtr());