Files
clang-p2996/llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
Youngsuk Kim 23d41ed5c9 [CGSCCPassManagerTest] Replace no-op bitcast to create constant using the old function (#72460)
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>
2023-11-16 06:00:36 -05:00

75 KiB