Set the correct type for i8 metadata constants in DXIL

This commit is contained in:
baldurk
2023-11-20 18:17:21 +00:00
parent 9082c985c6
commit b9c338568f
@@ -425,7 +425,7 @@ Metadata *ProgramEditor::CreateConstantMetadata(uint8_t val)
Metadata *m = CreateMetadata();
m->isConstant = true;
m->type = m_Int8Type;
m->value = CreateConstant(Constant(m_Int32Type, val));
m->value = CreateConstant(Constant(m_Int8Type, val));
return m;
}