diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-04-22 07:37:18 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-04-22 07:37:18 +0000 |
| commit | 901a4e406b45445ffeb7d482bb7a6ff8862d5cb3 (patch) | |
| tree | 99a9ffb75daede430ccd90b1e4e199d6374ea996 /clang/lib/Analysis/ExplodedGraph.cpp | |
| parent | 7432cbd04869e49a8e9e7bf947c0f8c796e0568b (diff) | |
| download | bcm5719-llvm-901a4e406b45445ffeb7d482bb7a6ff8862d5cb3.tar.gz bcm5719-llvm-901a4e406b45445ffeb7d482bb7a6ff8862d5cb3.zip | |
Use back() instead of end()-1
llvm-svn: 50098
Diffstat (limited to 'clang/lib/Analysis/ExplodedGraph.cpp')
| -rw-r--r-- | clang/lib/Analysis/ExplodedGraph.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/ExplodedGraph.cpp b/clang/lib/Analysis/ExplodedGraph.cpp index c184d1ec42f..95904cd3878 100644 --- a/clang/lib/Analysis/ExplodedGraph.cpp +++ b/clang/lib/Analysis/ExplodedGraph.cpp @@ -82,8 +82,8 @@ ExplodedNodeImpl** ExplodedNodeImpl::NodeGroup::end() const { return (ExplodedNodeImpl**) (getPtr() ? &P+1 : NULL); else { // Dereferencing end() is undefined behaviour. The vector is not empty, so - // we can dereference the last elem (end()-1) and then add 1 to the result. - return const_cast<ExplodedNodeImpl**>(&*(getVector(getPtr()).end()-1)) + 1; + // we can dereference the last elem and then add 1 to the result. + return const_cast<ExplodedNodeImpl**>(&getVector(getPtr()).back()) + 1; } } |

