@@ -1475,10 +1475,6 @@ llvm::Type *CGOpenMPRuntime::getIdentTyPointerTy() {
14751475 return OMPBuilder.IdentPtr;
14761476}
14771477
1478- llvm::Type *CGOpenMPRuntime::getKmpc_MicroPointerTy() {
1479- return llvm::PointerType::getUnqual(CGM.getLLVMContext());
1480- }
1481-
14821478static llvm::OffloadEntriesInfoManager::OMPTargetDeviceClauseKind
14831479convertDeviceClause(const VarDecl *VD) {
14841480 std::optional<OMPDeclareTargetDeclAttr::DevTypeTy> DevTy =
@@ -1855,7 +1851,7 @@ void CGOpenMPRuntime::emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
18551851 llvm::Value *Args[] = {
18561852 RTLoc,
18571853 CGF.Builder.getInt32(CapturedVars.size()), // Number of captured vars
1858- CGF.Builder.CreateBitCast( OutlinedFn, RT.getKmpc_MicroPointerTy()) };
1854+ OutlinedFn};
18591855 llvm::SmallVector<llvm::Value *, 16> RealArgs;
18601856 RealArgs.append(std::begin(Args), std::end(Args));
18611857 RealArgs.append(CapturedVars.begin(), CapturedVars.end());
@@ -9931,7 +9927,7 @@ void CGOpenMPRuntime::emitTeamsCall(CodeGenFunction &CGF,
99319927 llvm::Value *Args[] = {
99329928 RTLoc,
99339929 CGF.Builder.getInt32(CapturedVars.size()), // Number of captured vars
9934- CGF.Builder.CreateBitCast( OutlinedFn, getKmpc_MicroPointerTy()) };
9930+ OutlinedFn};
99359931 llvm::SmallVector<llvm::Value *, 16> RealArgs;
99369932 RealArgs.append(std::begin(Args), std::end(Args));
99379933 RealArgs.append(CapturedVars.begin(), CapturedVars.end());
0 commit comments