aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-07-16 21:04:16 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-07-16 21:04:16 +0000
commit193833ed171fab065b9ef7cc872d114da526b534 (patch)
tree16e7fa4a4f75d64c88739f365852659a4d7d52d9 /gcc/cp/method.c
parent274077a44c1411b4d18040206355dbeaecc53f42 (diff)
downloadgcc-193833ed171fab065b9ef7cc872d114da526b534.zip
gcc-193833ed171fab065b9ef7cc872d114da526b534.tar.gz
gcc-193833ed171fab065b9ef7cc872d114da526b534.tar.bz2
cp-tree.h (THUNK_VCALL_OFFSET): Update documentation.
* cp-tree.h (THUNK_VCALL_OFFSET): Update documentation. * method.c (use_thunk): Correct handling of vcall offsets. From-SVN: r35064
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index f8e9bc2..0926021 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -2267,7 +2267,7 @@ use_thunk (thunk_fndecl, emit_p)
t = fold (build (PLUS_EXPR, TREE_TYPE (a), a, t));
/* If there's a vcall offset, look up that value in the vtable and
adjust the `this' pointer again. */
- if (!integer_zerop (vcall_offset))
+ if (vcall_offset && !integer_zerop (vcall_offset))
{
tree orig_this;