mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed tuple cast
This commit is contained in:
parent
71087af6d3
commit
16bc8de229
2 changed files with 2 additions and 24 deletions
|
@ -4821,12 +4821,6 @@ BfTypedValue BfExprEvaluator::CreateCall(BfMethodInstance* methodInstance, BfIRV
|
||||||
bool doingThis = !methodDef->mIsStatic;
|
bool doingThis = !methodDef->mIsStatic;
|
||||||
int argIdx = 0;
|
int argIdx = 0;
|
||||||
|
|
||||||
|
|
||||||
if (methodInstance->mIdHash == 1140)
|
|
||||||
{
|
|
||||||
NOP;
|
|
||||||
}
|
|
||||||
|
|
||||||
int paramCount = methodInstance->GetParamCount();
|
int paramCount = methodInstance->GetParamCount();
|
||||||
|
|
||||||
for ( ; argIdx < callIRArgCount ; )
|
for ( ; argIdx < callIRArgCount ; )
|
||||||
|
@ -10129,11 +10123,6 @@ void BfExprEvaluator::Visit(BfDelegateBindExpression* delegateBindExpr)
|
||||||
fieldIdx = 0;
|
fieldIdx = 0;
|
||||||
SizedArray<BfIRValue, 8> irArgs;
|
SizedArray<BfIRValue, 8> irArgs;
|
||||||
|
|
||||||
if (methodInstance->mIdHash == 775)
|
|
||||||
{
|
|
||||||
NOP;
|
|
||||||
}
|
|
||||||
|
|
||||||
int argIdx = 0;
|
int argIdx = 0;
|
||||||
if (bindMethodInstance->GetStructRetIdx() == 0)
|
if (bindMethodInstance->GetStructRetIdx() == 0)
|
||||||
{
|
{
|
||||||
|
@ -11208,11 +11197,6 @@ BfLambdaInstance* BfExprEvaluator::GetLambdaInstance(BfLambdaBindExpression* lam
|
||||||
|
|
||||||
void BfExprEvaluator::Visit(BfLambdaBindExpression* lambdaBindExpr)
|
void BfExprEvaluator::Visit(BfLambdaBindExpression* lambdaBindExpr)
|
||||||
{
|
{
|
||||||
// if (lambdaBindExpr->ToString() == "new (addr, byteCount, addrType) => { DoCreateMemoryBreakpoint(addr, byteCount, addrType, showOptions); }")
|
|
||||||
// {
|
|
||||||
// NOP;
|
|
||||||
// }
|
|
||||||
|
|
||||||
BfTokenNode* newToken = NULL;
|
BfTokenNode* newToken = NULL;
|
||||||
BfAllocTarget allocTarget = ResolveAllocTarget(lambdaBindExpr->mNewToken, newToken);
|
BfAllocTarget allocTarget = ResolveAllocTarget(lambdaBindExpr->mNewToken, newToken);
|
||||||
|
|
||||||
|
@ -14881,11 +14865,6 @@ BfTypedValue BfExprEvaluator::GetResult(bool clearResult, bool resolveGenericTyp
|
||||||
return mResult;
|
return mResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (matchedMethod->mName == "get__CultureName")
|
|
||||||
{
|
|
||||||
NOP;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto methodInstance = GetPropertyMethodInstance(matchedMethod);
|
auto methodInstance = GetPropertyMethodInstance(matchedMethod);
|
||||||
if (methodInstance.mMethodInstance == NULL)
|
if (methodInstance.mMethodInstance == NULL)
|
||||||
return mResult;
|
return mResult;
|
||||||
|
|
|
@ -8859,9 +8859,8 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp
|
||||||
}
|
}
|
||||||
if (matches)
|
if (matches)
|
||||||
{
|
{
|
||||||
typedVal = MakeAddressable(typedVal);
|
// This is either a ref or a ptr so we don't need to set the "IsAddr" flag
|
||||||
if (resultFlags != NULL)
|
typedVal = MakeAddressable(typedVal);
|
||||||
*resultFlags = (BfCastResultFlags)(BfCastResultFlags_IsAddr);
|
|
||||||
return mBfIRBuilder->CreateBitCast(typedVal.mValue, mBfIRBuilder->MapType(toType));
|
return mBfIRBuilder->CreateBitCast(typedVal.mValue, mBfIRBuilder->MapType(toType));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue