1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Comptime method fixes

This commit is contained in:
Brian Fiete 2021-11-28 09:42:22 -08:00
parent 0927656400
commit ed06ff4dce
5 changed files with 37 additions and 7 deletions

View file

@ -5276,7 +5276,10 @@ void DbgExprEvaluator::LookupSplatMember(BfAstNode* targetNode, BfAstNode* looku
if (!memberType->IsStruct())
Fail("Failed to lookup splat member", (lookupNode != NULL) ? lookupNode : targetNode);
BF_ASSERT((target.mVariable != NULL) || (target.mType->GetByteCount() == 0));
if ((target.mVariable == NULL) && (target.mType->GetByteCount() != 0))
Fail("Splat variable not found", (lookupNode != NULL) ? lookupNode : targetNode);
//BF_ASSERT((target.mVariable != NULL) || (target.mType->GetByteCount() == 0));
mResult = target;
mResult.mType = memberType;
}