[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
================
@@ -895,9 +895,9 @@ CleanupAndPrepareModules(BugDriver &BD, std::unique_ptr<Module> Test,
"resolver", LookupBB);
// Cast the result from the resolver to correctly-typed function.
- CastInst *CastedResolver = new BitCastInst(
- Resolver, PointerType::getUnqual(F->getFunctionType()),
- "resolverCast", LookupBB);
+ CastInst *CastedResolver =
+ new BitCastInst(Resolver, PointerType::getUnqual(F->getContext()),
+ "resolverCast", LookupBB);
----------------
nikic wrote:
Can drop this bitcast.
https://github.com/llvm/llvm-project/pull/123909
More information about the llvm-commits
mailing list