From: Ted Kremenek Date: Wed, 2 Jan 2008 21:31:13 +0000 (+0000) Subject: Converted state reference within SimulVertex from StateTy* to StateTy. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41bc5cda96a8893e12d2750779e307ae92da4be6;p=clang Converted state reference within SimulVertex from StateTy* to StateTy. This is more flexible. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45502 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/PathSensitive/SimulVertex.h b/include/clang/Analysis/PathSensitive/SimulVertex.h index 9ca4b012ae..20f81e85ce 100644 --- a/include/clang/Analysis/PathSensitive/SimulVertex.h +++ b/include/clang/Analysis/PathSensitive/SimulVertex.h @@ -44,7 +44,7 @@ private: /// State - The state associated with this vertex. Normally this value /// is immutable, but we anticipate there will be times when algorithms /// that directly manipulate the analysis graph will need to change it. - StateTy* State; + StateTy State; /// Predecessors/Successors - Keep track of the predecessor/successor /// vertices. @@ -57,11 +57,11 @@ private: AdjacentVertices Succs; public: - explicit SimulVertex(unsigned ID, const ProgramEdge& loc, StateTy* state) + explicit SimulVertex(unsigned ID, const ProgramEdge& loc, StateTy& state) : VertexID(ID), Location(loc), State(state) {} // Accessors. - StateTy* getState() const { return State; } + const StateTy& getState() const { return State; } const ProgramEdge& getLocation() const { return Location; } unsigned getVertexID() const { return VertexID; }