소스 검색

* Block nodes are now marked as strippable when created from "begin" statements

J. Gareth "Curious Kit" Moreton 1 년 전
부모
커밋
b828529b24
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      compiler/pstatmnt.pas

+ 4 - 1
compiler/pstatmnt.pas

@@ -1387,7 +1387,10 @@ implementation
                   end;
              end;
            _BEGIN :
-             code:=statement_block(_BEGIN);
+             begin
+               code:=statement_block(_BEGIN);
+               Include(TBlockNode(code).blocknodeflags, bnf_strippable);
+             end;
            _IF :
              code:=if_statement;
            _CASE :