From a441783544d17676e92d265a0e7406b85faa6944 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Fri, 3 Oct 2014 20:40:24 +0000 Subject: [Fix] Accidently changed the type of a libgomp argument in r219003. Only subsequent patches introduced tests for the signature in the generated IR, thus the tests were wrong too and are adjusted now. llvm-svn: 219017 --- polly/lib/CodeGen/LoopGenerators.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'polly/lib/CodeGen/LoopGenerators.cpp') diff --git a/polly/lib/CodeGen/LoopGenerators.cpp b/polly/lib/CodeGen/LoopGenerators.cpp index c0994b3d643..09945ecd943 100644 --- a/polly/lib/CodeGen/LoopGenerators.cpp +++ b/polly/lib/CodeGen/LoopGenerators.cpp @@ -189,14 +189,14 @@ void ParallelLoopGenerator::createCallSpawnThreads(Value *SubFn, Type *Params[] = {PointerType::getUnqual(FunctionType::get( Builder.getVoidTy(), Builder.getInt8PtrTy(), false)), - Builder.getInt8PtrTy(), LongType, LongType, LongType, - LongType}; + Builder.getInt8PtrTy(), Builder.getInt32Ty(), LongType, + LongType, LongType}; FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false); F = Function::Create(Ty, Linkage, Name, M); } - Value *NumberOfThreads = ConstantInt::get(LongType, PollyNumThreads); + Value *NumberOfThreads = Builder.getInt32(PollyNumThreads); Value *Args[] = {SubFn, SubFnParam, NumberOfThreads, LB, UB, Stride}; Builder.CreateCall(F, Args); -- cgit v1.2.3