@@ -11542,7 +11542,7 @@ void EmitPass::emitLoad(LoadInst* inst, Value* offset, ConstantInt* immOffset)
11542
11542
immOffset,
11543
11543
inst->getType(),
11544
11544
cacheOpts,
11545
- inst->getAlignment());
11545
+ (uint32_t) inst->getAlignment());
11546
11546
return;
11547
11547
}
11548
11548
emitVectorLoad(inst, offset, immOffset);
@@ -12697,7 +12697,7 @@ void EmitPass::emitStore(StoreInst* inst, Value* varOffset, ConstantInt* immOffs
12697
12697
immOffset,
12698
12698
inst->getValueOperand(),
12699
12699
cacheOpts,
12700
- inst->getAlignment());
12700
+ (uint32_t) inst->getAlignment());
12701
12701
return;
12702
12702
}
12703
12703
emitVectorStore(inst, varOffset, immOffset);
@@ -17960,7 +17960,7 @@ void EmitPass::emitVectorLoad(LoadInst* inst, Value* offset, ConstantInt* immOff
17960
17960
IGC_ASSERT_MESSAGE(!(destUniform && !srcUniform),
17961
17961
"If ld's dest is uniform, ld's src must be uniform");
17962
17962
17963
- unsigned align = inst->getAlignment();
17963
+ unsigned align = (unsigned) inst->getAlignment();
17964
17964
VISA_Type destType = m_destination->GetType();
17965
17965
uint32_t width = numLanes(m_currShader->m_SIMDSize);
17966
17966
uint bufferIndex = 0;
@@ -18482,7 +18482,7 @@ void EmitPass::emitVectorStore(StoreInst* inst, Value* offset, ConstantInt* immO
18482
18482
18483
18483
uint32_t elts = VTy ? int_cast<uint32_t>(VTy->getNumElements()) : 1;
18484
18484
uint32_t totalBytes = elts * eltBytes;
18485
- unsigned align = inst->getAlignment();
18485
+ unsigned align = (unsigned) inst->getAlignment();
18486
18486
CVariable* storedVar = GetSymbol(storedVal);
18487
18487
unsigned int width = numLanes(m_currShader->m_SIMDSize);
18488
18488
0 commit comments