Browse Source

Fixed BfSizedArrayCreateExpression error handling for non-array

Brian Fiete 4 tháng trước cách đây
mục cha
commit
ad3d90e521
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      IDEHelper/Compiler/BfReducer.cpp

+ 2 - 0
IDEHelper/Compiler/BfReducer.cpp

@@ -1837,6 +1837,8 @@ BfExpression* BfReducer::CreateExpression(BfAstNode* node, CreateExprFlags creat
 							else
 							{
 								Fail("Sized array type expected", typeRef);
+								AddErrorNode(typeRef);
+								return NULL;
 							}
 						}
 					}