diff ir/irfunction.cpp @ 1223:5f340a6dc749

Fix nested functions. My last patch was a little over-zealous in passing `undef`, it always passed `undef` to inner functions expecting a single context frame.
author Frits van Bommel <fvbommel wxs.nl>
date Fri, 17 Apr 2009 13:50:01 +0200
parents 033f18ec1371
children 3f5ea912149d
line wrap: on
line diff
--- a/ir/irfunction.cpp	Fri Apr 17 03:47:56 2009 +0200
+++ b/ir/irfunction.cpp	Fri Apr 17 13:50:01 2009 +0200
@@ -112,7 +112,7 @@
 
     nestedVar = NULL;
     frameType = NULL;
-    depth = 0;
+    depth = -1;
     
     _arguments = NULL;
     _argptr = NULL;