diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-01-02 21:31:13 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-01-02 21:31:13 +0000 |
commit | 41bc5cda96a8893e12d2750779e307ae92da4be6 (patch) | |
tree | 2c5ae489f81155dd23b9a1ce03357c7a8680570a | |
parent | ef5a85d364108fc26631f5e7c569bc4544bdb108 (diff) |
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
-rw-r--r-- | include/clang/Analysis/PathSensitive/SimulVertex.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |