aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2004-08-12 18:03:15 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-08-12 18:03:15 +0000
commit741d8ca3766e04e9035077b611a42b917c349267 (patch)
tree9204cbedc6be5c77e0afd0ddd3458fe7bd5d47e5
parentf7a8132ae8f97e55dfd62d527f3d528a2a560ca5 (diff)
downloadgcc-741d8ca3766e04e9035077b611a42b917c349267.zip
gcc-741d8ca3766e04e9035077b611a42b917c349267.tar.gz
gcc-741d8ca3766e04e9035077b611a42b917c349267.tar.bz2
Fix typo
From-SVN: r85887
-rw-r--r--gcc/cp/class.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index f46cdbe..4b7765b 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -1896,6 +1896,8 @@ dfs_find_final_overrider_1 (tree binfo,
tree *vpath,
find_final_overrider_data *ffod)
{
+ tree method;
+
/* If BINFO is not the most derived type, try a more derived class.
A definition there will overrider a definition here. */
if (!same_type_p (BINFO_TYPE (binfo), ffod->most_derived_type))
@@ -1910,8 +1912,7 @@ dfs_find_final_overrider_1 (tree binfo,
return true;
}
- tree method = look_for_overrides_here (BINFO_TYPE (binfo), ffod->fn);
-
+ method = look_for_overrides_here (BINFO_TYPE (binfo), ffod->fn);
if (method)
{
tree *candidate = &ffod->candidates;