summaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-02 15:54:08 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-02 15:54:08 +0000
commiteb42c808abb552c48f105956fcfccad9681aae96 (patch)
tree364b6697bb38016eea701af9db7e0b7c0b800207 /gcc/cp/method.c
parentd697f1db8e953f0062b3c8392a1a0a881efe021d (diff)
downloadgcc-eb42c808abb552c48f105956fcfccad9681aae96.tar.gz
PR target/12729
* method.c (use_thunk): Pass the CALL_EXPR through force_target_expr. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75325 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index bd1e2ad9ec5..9dd3c48129d 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -487,6 +487,7 @@ use_thunk (tree thunk_fndecl, bool emit_p)
t = tree_cons (NULL_TREE, a, t);
t = nreverse (t);
t = build_call (alias, t);
+ t = force_target_expr (TREE_TYPE (t), t);
if (!this_adjusting)
t = thunk_adjust (t, /*this_adjusting=*/0,
fixed_offset, virtual_offset);