File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1403,7 +1403,7 @@ void OCLToSPIRVBase::visitCallEnqueueKernel(CallInst *CI,
1403
1403
// TODO: these numbers should be obtained from block literal structure
1404
1404
Type *ParamType = getBlockStructType (BlockLiteral);
1405
1405
Args.push_back (getInt32 (M, DL.getTypeStoreSize (ParamType)));
1406
- Args.push_back (getInt32 (M, DL.getPrefTypeAlignment (ParamType)));
1406
+ Args.push_back (getInt32 (M, DL.getPrefTypeAlign (ParamType). value ( )));
1407
1407
1408
1408
// Local sizes arguments: Sizes of block invoke arguments
1409
1409
// Clang 6.0 and higher generates local size operands as an array,
@@ -1457,7 +1457,7 @@ void OCLToSPIRVBase::visitCallKernelQuery(CallInst *CI,
1457
1457
// Add Param Size and Param Align at the end.
1458
1458
Args[BlockFIdx] = BlockF;
1459
1459
Args.push_back (getInt32 (M, DL.getTypeStoreSize (ParamType)));
1460
- Args.push_back (getInt32 (M, DL.getPrefTypeAlignment (ParamType)));
1460
+ Args.push_back (getInt32 (M, DL.getPrefTypeAlign (ParamType). value ( )));
1461
1461
1462
1462
Op Opcode = OCLSPIRVBuiltinMap::map (DemangledName.str ());
1463
1463
// Adding "__" postfix, so in case we have multiple such
You can’t perform that action at this time.
0 commit comments