From: Benjamin Kramer Date: Sun, 27 May 2012 15:32:10 +0000 (+0000) Subject: Pass ProgramStateRef by reference. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=443488eba94bf3504d2abee5cb5e8896f8cc212a;p=platform%2Fupstream%2Fllvm.git Pass ProgramStateRef by reference. Retain + Release on a ref counted pointer is cheap, but not free (it adds a function call in this case). llvm-svn: 157534 --- diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h index 46fbb88..40969d3 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h @@ -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());