diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2006-04-17 16:32:03 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2006-04-17 16:32:03 +0000 |
commit | 7304fcb4a7177bc0a988241401f11fa91afaa228 (patch) | |
tree | f207e31f7f0796b2e85c92b910ff9bbd4a1afeba /gcc/cp/init.c | |
parent | 71a9b19ae81bcf0d3674649af4ce0c0926310eac (diff) | |
download | gcc-7304fcb4a7177bc0a988241401f11fa91afaa228.zip gcc-7304fcb4a7177bc0a988241401f11fa91afaa228.tar.gz gcc-7304fcb4a7177bc0a988241401f11fa91afaa228.tar.bz2 |
* init.c (build_offset_ref): Remove superfluous temporary.
From-SVN: r113008
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 0439e92..bc6df20 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -1378,8 +1378,7 @@ build_offset_ref (tree type, tree member, bool address_p) if (BASELINK_P (member)) { /* Go from the TREE_BASELINK to the member function info. */ - tree fnfields = member; - tree t = BASELINK_FUNCTIONS (fnfields); + tree t = BASELINK_FUNCTIONS (member); if (TREE_CODE (t) != TEMPLATE_ID_EXPR && !really_overloaded_fn (t)) { @@ -1405,10 +1404,7 @@ build_offset_ref (tree type, tree member, bool address_p) member = t; } else - { - TREE_TYPE (fnfields) = unknown_type_node; - member = fnfields; - } + TREE_TYPE (member) = unknown_type_node; } else if (address_p && TREE_CODE (member) == FIELD_DECL) /* We need additional test besides the one in |