]> granicus.if.org Git - clang/commitdiff
ProgramPoint is just a smart pointer; no reason to return a constant reference.
authorTed Kremenek <kremenek@apple.com>
Thu, 27 Mar 2008 18:11:59 +0000 (18:11 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 27 Mar 2008 18:11:59 +0000 (18:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48891 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/ExplodedGraph.h

index 79a4c85f078c51458c25d5affffc36172262c85b..656981f620fef21b08722eeebae91b07ee54c55a 100644 (file)
@@ -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(); }