From: Ted Kremenek Date: Thu, 27 Mar 2008 18:11:59 +0000 (+0000) Subject: ProgramPoint is just a smart pointer; no reason to return a constant reference. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f9063c116b7c3b05d8042b5976463c2dae04861;p=clang ProgramPoint is just a smart pointer; no reason to return a constant reference. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48891 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/PathSensitive/ExplodedGraph.h b/include/clang/Analysis/PathSensitive/ExplodedGraph.h index 79a4c85f07..656981f620 100644 --- a/include/clang/Analysis/PathSensitive/ExplodedGraph.h +++ b/include/clang/Analysis/PathSensitive/ExplodedGraph.h @@ -118,7 +118,7 @@ protected: public: /// getLocation - Returns the edge associated with the given node. - const ProgramPoint& getLocation() const { return Location; } + ProgramPoint getLocation() const { return Location; } unsigned succ_size() const { return Succs.size(); } unsigned pred_size() const { return Preds.size(); }