浏览代码

* give error when paraloc is not filled in order_parameter

peter 21 年之前
父节点
当前提交
d387fda801
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      compiler/ncal.pas

+ 6 - 1
compiler/ncal.pas

@@ -1850,6 +1850,8 @@ type
                 3. LOC_REGISTER with most registers
                 3. LOC_REGISTER with most registers
               For the moment we only look at the first parameter field. Combining it
               For the moment we only look at the first parameter field. Combining it
               with multiple parameter fields will make things a lot complexer (PFV) }
               with multiple parameter fields will make things a lot complexer (PFV) }
+            if not assigned(hpcurr.parasym.paraloc[callerside].location) then
+              internalerror(200412152);
             currloc:=hpcurr.parasym.paraloc[callerside].location^.loc;
             currloc:=hpcurr.parasym.paraloc[callerside].location^.loc;
             hpprev:=nil;
             hpprev:=nil;
             hp:=hpfirst;
             hp:=hpfirst;
@@ -2432,7 +2434,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.269  2004-12-07 16:11:52  peter
+  Revision 1.270  2004-12-15 19:30:16  peter
+    * give error when paraloc is not filled in order_parameter
+
+  Revision 1.269  2004/12/07 16:11:52  peter
     * set vo_explicit_paraloc flag
     * set vo_explicit_paraloc flag
 
 
   Revision 1.268  2004/12/05 12:28:11  peter
   Revision 1.268  2004/12/05 12:28:11  peter