1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Improved custom allocator expression parsing on delete statement

This commit is contained in:
Brian Fiete 2022-01-29 17:31:22 -05:00
parent c2a2cf221a
commit 157d3f90e5

View file

@ -3828,7 +3828,7 @@ BfAstNode* BfReducer::DoCreateStatement(BfAstNode* node, CreateStmtFlags createS
if (deleteStmt->mAllocExpr == NULL)
{
auto allocExpr = CreateExpressionAfter(deleteStmt);
auto allocExpr = CreateExpressionAfter(deleteStmt, (CreateExprFlags)(CreateExprFlags_NoCast | CreateExprFlags_ExitOnParenExpr));
if (allocExpr != NULL)
{
MEMBER_SET(deleteStmt, mAllocExpr, allocExpr);