mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: Remove unnecessary cast from getOrCreateHelperFunction()
This commit is contained in:
@@ -4481,9 +4481,8 @@ IRGenModule::getOrCreateHelperFunction(StringRef fnName, llvm::Type *resultTy,
|
||||
llvm::FunctionType::get(resultTy, paramTys, false);
|
||||
|
||||
llvm::Constant *fn =
|
||||
cast<llvm::Function>(Module.getOrInsertFunction(fnName, fnTy)
|
||||
.getCallee()
|
||||
->stripPointerCasts());
|
||||
cast<llvm::Constant>(
|
||||
Module.getOrInsertFunction(fnName, fnTy).getCallee());
|
||||
|
||||
if (llvm::Function *def = shouldDefineHelper(*this, fn, setIsNoInline)) {
|
||||
IRGenFunction IGF(*this, def);
|
||||
|
||||
Reference in New Issue
Block a user