Browse Source

- disallow calling tai_symbol_end.Createname with a symbol name that isn't yet defined

git-svn-id: trunk@25210 -
nickysn 12 years ago
parent
commit
db541b59fa
1 changed files with 3 additions and 1 deletions
  1. 3 1
      compiler/aasmtai.pas

+ 3 - 1
compiler/aasmtai.pas

@@ -1371,7 +1371,9 @@ implementation
       begin
       begin
          inherited Create;
          inherited Create;
          typ:=ait_symbol_end;
          typ:=ait_symbol_end;
-         sym:=current_asmdata.RefAsmSymbol(_name);
+         sym:=current_asmdata.GetAsmSymbol(_name);
+         if not assigned(sym) then
+           internalerror(2013080301);
       end;
       end;