aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadupdate.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2013-09-25 09:33:34 -0600
committerJeff Law <law@gcc.gnu.org>2013-09-25 09:33:34 -0600
commitaf33629e0a154de55f8b5c4459d9e09eee403b71 (patch)
tree1dfdaa7e4acd2b6fce294316b85339816660856f /gcc/tree-ssa-threadupdate.c
parented0d30514f77227b7d1d89c855f9791db102180e (diff)
downloadgcc-af33629e0a154de55f8b5c4459d9e09eee403b71.zip
gcc-af33629e0a154de55f8b5c4459d9e09eee403b71.tar.gz
gcc-af33629e0a154de55f8b5c4459d9e09eee403b71.tar.bz2
tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather than foo[foo.length () - 1] to access last member in a vec.
* tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather than foo[foo.length () - 1] to access last member in a vec. * tree-ssa-threadupdate.c (register_jump_thread): Similarly. From-SVN: r202892
Diffstat (limited to 'gcc/tree-ssa-threadupdate.c')
-rw-r--r--gcc/tree-ssa-threadupdate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c
index 4131128..fd5234c 100644
--- a/gcc/tree-ssa-threadupdate.c
+++ b/gcc/tree-ssa-threadupdate.c
@@ -1401,7 +1401,7 @@ register_jump_thread (vec<edge> path, bool through_joiner)
if (!through_joiner)
e3 = NULL;
else
- e3 = path[path.length () - 1];
+ e3 = path.last ();
/* This can occur if we're jumping to a constant address or
or something similar. Just get out now. */