c++: Simplify build_over_call a bit.
authorJason Merrill <jason@redhat.com>
Wed, 24 Jun 2020 05:49:06 +0000 (01:49 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 24 Jun 2020 19:59:24 +0000 (15:59 -0400)
commit3faa0dde31720a59082b038a9f50f5703711bb53
tree68eaaee7525ca49b16a10ee33df8d0243e151abe
parent7d6baf68fe22b6ef5b1d6fabbef97c0e1b4d7abf
c++: Simplify build_over_call a bit.

It occurred to me that if we're looking up the defining base within the
conversion_path binfo, we could use the result for the conversion as well
instead of doing two separate conversions.

gcc/cp/ChangeLog:

* call.c (build_over_call): Only call build_base_path once.
gcc/cp/call.c