mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +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;
|
||||
int argIdx = 0;
|
||||
|
||||
|
||||
if (methodInstance->mIdHash == 1140)
|
||||
{
|
||||
NOP;
|
||||
}
|
||||
|
||||
int paramCount = methodInstance->GetParamCount();
|
||||
|
||||
for ( ; argIdx < callIRArgCount ; )
|
||||
|
@ -10129,11 +10123,6 @@ void BfExprEvaluator::Visit(BfDelegateBindExpression* delegateBindExpr)
|
|||
fieldIdx = 0;
|
||||
SizedArray<BfIRValue, 8> irArgs;
|
||||
|
||||
if (methodInstance->mIdHash == 775)
|
||||
{
|
||||
NOP;
|
||||
}
|
||||
|
||||
int argIdx = 0;
|
||||
if (bindMethodInstance->GetStructRetIdx() == 0)
|
||||
{
|
||||
|
@ -11208,11 +11197,6 @@ BfLambdaInstance* BfExprEvaluator::GetLambdaInstance(BfLambdaBindExpression* lam
|
|||
|
||||
void BfExprEvaluator::Visit(BfLambdaBindExpression* lambdaBindExpr)
|
||||
{
|
||||
// if (lambdaBindExpr->ToString() == "new (addr, byteCount, addrType) => { DoCreateMemoryBreakpoint(addr, byteCount, addrType, showOptions); }")
|
||||
// {
|
||||
// NOP;
|
||||
// }
|
||||
|
||||
BfTokenNode* newToken = NULL;
|
||||
BfAllocTarget allocTarget = ResolveAllocTarget(lambdaBindExpr->mNewToken, newToken);
|
||||
|
||||
|
@ -14881,11 +14865,6 @@ BfTypedValue BfExprEvaluator::GetResult(bool clearResult, bool resolveGenericTyp
|
|||
return mResult;
|
||||
}
|
||||
|
||||
if (matchedMethod->mName == "get__CultureName")
|
||||
{
|
||||
NOP;
|
||||
}
|
||||
|
||||
auto methodInstance = GetPropertyMethodInstance(matchedMethod);
|
||||
if (methodInstance.mMethodInstance == NULL)
|
||||
return mResult;
|
||||
|
|
|
@ -8859,9 +8859,8 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp
|
|||
}
|
||||
if (matches)
|
||||
{
|
||||
typedVal = MakeAddressable(typedVal);
|
||||
if (resultFlags != NULL)
|
||||
*resultFlags = (BfCastResultFlags)(BfCastResultFlags_IsAddr);
|
||||
// This is either a ref or a ptr so we don't need to set the "IsAddr" flag
|
||||
typedVal = MakeAddressable(typedVal);
|
||||
return mBfIRBuilder->CreateBitCast(typedVal.mValue, mBfIRBuilder->MapType(toType));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue