From 78a4b9d9b46d59e20cf01d6008ab0080052e9938 Mon Sep 17 00:00:00 2001 From: Mats Jun Larsen Date: Fri, 4 Apr 2025 16:18:13 +0900 Subject: [PATCH] [polly] Prefer PointerType::get with LLVMContext over Type (NFC) (#133868) Part of #123569 --- polly/lib/CodeGen/LoopGeneratorsGOMP.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp b/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp index b98416a92097..61c153d2ccfa 100644 --- a/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp +++ b/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp @@ -30,13 +30,9 @@ void ParallelLoopGeneratorGOMP::createCallSpawnThreads(Value *SubFn, if (!F) { GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage; - Type *Params[] = {PointerType::getUnqual(FunctionType::get( - Builder.getVoidTy(), Builder.getPtrTy(), false)), - Builder.getPtrTy(), - Builder.getInt32Ty(), - LongType, - LongType, - LongType}; + Type *Params[] = { + Builder.getPtrTy(), Builder.getPtrTy(), Builder.getInt32Ty(), + LongType, LongType, LongType}; FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false); F = Function::Create(Ty, Linkage, Name, M);