[polly] Prefer PointerType::get with LLVMContext over Type (NFC) (#133868)

Part of #123569
This commit is contained in:
Mats Jun Larsen 2025-04-04 16:18:13 +09:00 committed by GitHub
parent d579622b1e
commit 78a4b9d9b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);