@@ -11542,7 +11542,7 @@ void EmitPass::emitLoad(LoadInst* inst, Value* offset, ConstantInt* immOffset)
1154211542 immOffset,
1154311543 inst->getType(),
1154411544 cacheOpts,
11545- inst->getAlignment());
11545+ (uint32_t) inst->getAlignment());
1154611546 return;
1154711547 }
1154811548 emitVectorLoad(inst, offset, immOffset);
@@ -12697,7 +12697,7 @@ void EmitPass::emitStore(StoreInst* inst, Value* varOffset, ConstantInt* immOffs
1269712697 immOffset,
1269812698 inst->getValueOperand(),
1269912699 cacheOpts,
12700- inst->getAlignment());
12700+ (uint32_t) inst->getAlignment());
1270112701 return;
1270212702 }
1270312703 emitVectorStore(inst, varOffset, immOffset);
@@ -17960,7 +17960,7 @@ void EmitPass::emitVectorLoad(LoadInst* inst, Value* offset, ConstantInt* immOff
1796017960 IGC_ASSERT_MESSAGE(!(destUniform && !srcUniform),
1796117961 "If ld's dest is uniform, ld's src must be uniform");
1796217962
17963- unsigned align = inst->getAlignment();
17963+ unsigned align = (unsigned) inst->getAlignment();
1796417964 VISA_Type destType = m_destination->GetType();
1796517965 uint32_t width = numLanes(m_currShader->m_SIMDSize);
1796617966 uint bufferIndex = 0;
@@ -18482,7 +18482,7 @@ void EmitPass::emitVectorStore(StoreInst* inst, Value* offset, ConstantInt* immO
1848218482
1848318483 uint32_t elts = VTy ? int_cast<uint32_t>(VTy->getNumElements()) : 1;
1848418484 uint32_t totalBytes = elts * eltBytes;
18485- unsigned align = inst->getAlignment();
18485+ unsigned align = (unsigned) inst->getAlignment();
1848618486 CVariable* storedVar = GetSymbol(storedVal);
1848718487 unsigned int width = numLanes(m_currShader->m_SIMDSize);
1848818488
0 commit comments