]> granicus.if.org Git - clang/commitdiff
Pass ProgramStateRef by reference.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 27 May 2012 15:32:10 +0000 (15:32 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 27 May 2012 15:32:10 +0000 (15:32 +0000)
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

include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h

index 46fbb88212e3b955b3f331333be2819767a221c8..40969d3fa2440ecaa154d0ce52cc3eb0ba2db89a 100644 (file)
@@ -151,7 +151,7 @@ public:
 
   static void Profile(llvm::FoldingSetNodeID &ID,
                       const ProgramPoint &Loc,
-                      ProgramStateRef state,
+                      const ProgramStateRef &state,
                       bool IsSink) {
     ID.Add(Loc);
     ID.AddPointer(state.getPtr());