With opaque pointers enabled, the existing ptr-to-ptr bitcast is a no-op
and no longer creates a constant that references the old function.
Replace the no-op bitcast with code that creates a constant that
references the old function. The test now fails if the 1 new line of
code added to `CallGraphUpdater::replaceFunctionWith()` in
cb0ecc5c33 is removed (test passes if kept
intact).
---------
Co-authored-by: Nikita Popov <github@npopov.com>
75 KiB
75 KiB