[llvm] [IR] Replace of PointerType::getUnqual(Type) with opaque version (NFC) (PR #123909)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 01:50:29 PST 2025


================
@@ -1529,7 +1529,7 @@ void DevirtModule::applyICallBranchFunnel(VTableSlotInfo &SlotInfo,
       FunctionType *NewFT =
           FunctionType::get(CB.getFunctionType()->getReturnType(), NewArgs,
                             CB.getFunctionType()->isVarArg());
-      PointerType *NewFTPtr = PointerType::getUnqual(NewFT);
+      PointerType *NewFTPtr = PointerType::getUnqual(CB.getContext());
----------------
nikic wrote:

Can drop the JT bitcasts below.

https://github.com/llvm/llvm-project/pull/123909


More information about the llvm-commits mailing list