[cfe-commits] r48891 - /cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h

Ted Kremenek kremenek at apple.com
Thu Mar 27 11:11:59 PDT 2008


Author: kremenek
Date: Thu Mar 27 13:11:59 2008
New Revision: 48891

URL: http://llvm.org/viewvc/llvm-project?rev=48891&view=rev
Log:
ProgramPoint is just a smart pointer; no reason to return a constant reference.

Modified:
    cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h

Modified: cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h?rev=48891&r1=48890&r2=48891&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h Thu Mar 27 13:11:59 2008
@@ -118,7 +118,7 @@
 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(); }





More information about the cfe-commits mailing list