[all-commits] [llvm/llvm-project] 23d41e: [CGSCCPassManagerTest] Replace no-op bitcast to cr...
Youngsuk Kim via All-commits
all-commits at lists.llvm.org
Thu Nov 16 03:00:49 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 23d41ed5c9b85670a08ca340785853074c289ff6
https://github.com/llvm/llvm-project/commit/23d41ed5c9b85670a08ca340785853074c289ff6
Author: Youngsuk Kim <joseph942010 at gmail.com>
Date: 2023-11-16 (Thu, 16 Nov 2023)
Changed paths:
M llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
Log Message:
-----------
[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
cb0ecc5c33bd56a3eed0fa30ac787accec45d637 is removed (test passes if kept
intact).
---------
Co-authored-by: Nikita Popov <github at npopov.com>
More information about the All-commits
mailing list