mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed BeExtractValueConstant::GetType
This commit is contained in:
parent
b30a72719c
commit
a69217e296
1 changed files with 2 additions and 2 deletions
|
@ -526,7 +526,7 @@ BeType* BeExtractValueConstant::GetType()
|
||||||
{
|
{
|
||||||
BeSizedArrayType* arrayType = (BeSizedArrayType*)type;
|
BeSizedArrayType* arrayType = (BeSizedArrayType*)type;
|
||||||
BF_ASSERT(arrayType->mTypeCode == BeTypeCode_SizedArray);
|
BF_ASSERT(arrayType->mTypeCode == BeTypeCode_SizedArray);
|
||||||
return arrayType->mContext->GetPointerTo(arrayType->mElementType);
|
return arrayType->mElementType;
|
||||||
}
|
}
|
||||||
/*else if (ptrType->mElementType->IsPointer())
|
/*else if (ptrType->mElementType->IsPointer())
|
||||||
{
|
{
|
||||||
|
@ -536,7 +536,7 @@ BeType* BeExtractValueConstant::GetType()
|
||||||
{
|
{
|
||||||
BeStructType* structType = (BeStructType*)type;
|
BeStructType* structType = (BeStructType*)type;
|
||||||
BF_ASSERT(structType->mTypeCode == BeTypeCode_Struct);
|
BF_ASSERT(structType->mTypeCode == BeTypeCode_Struct);
|
||||||
return structType->mContext->GetPointerTo(structType->mMembers[mIdx0].mType);
|
return structType->mMembers[mIdx0].mType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue