aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ExplodedGraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/ExplodedGraph.cpp')
-rw-r--r--lib/Analysis/ExplodedGraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ExplodedGraph.cpp b/lib/Analysis/ExplodedGraph.cpp
index c184d1ec42..95904cd387 100644
--- a/lib/Analysis/ExplodedGraph.cpp
+++ b/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;
}
}