File tree 1 file changed +1
-7
lines changed 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -5712,14 +5712,8 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createTargetInit(
5712
5712
? KernelEnvironmentGV
5713
5713
: ConstantExpr::getAddrSpaceCast (KernelEnvironmentGV,
5714
5714
KernelEnvironmentPtr);
5715
- LLVMContext &Ctx = Fn->getContext ();
5716
- Type *PtrTy = PointerType::getUnqual (Ctx);
5717
- Value *KLEnv = Builder.CreateAlloca (PtrTy, nullptr , " kernel_launch_env" );
5718
- Value *KLEnvAcast = Builder.CreatePointerBitCastOrAddrSpaceCast (KLEnv, PtrTy);
5719
- Builder.CreateStore (Kernel->getArg (0 ), KLEnvAcast);
5720
- Value *KernelLaunchEnvironment = Builder.CreateLoad (PtrTy, KLEnvAcast);
5721
5715
CallInst *ThreadKind =
5722
- Builder.CreateCall (Fn, {KernelEnvironment, KernelLaunchEnvironment });
5716
+ Builder.CreateCall (Fn, {KernelEnvironment, Kernel-> getArg ( 0 ) });
5723
5717
5724
5718
Value *ExecUserCode = Builder.CreateICmpEQ (
5725
5719
ThreadKind, ConstantInt::get (ThreadKind->getType (), -1 ),
You can’t perform that action at this time.
0 commit comments