]> git.sur5r.net Git - cc65/blobdiff - src/cc65/function.c
Improved optimizations
[cc65] / src / cc65 / function.c
index fb274d8f99de19133d125e3ade6890ffe875baff..c30e682a63eb17dd51ce5ade0a459844e5ed207b 100644 (file)
@@ -471,15 +471,15 @@ void NewFunc (SymEntry* Func)
     /* Generate the exit code */
     g_leave ();
 
-    /* Eat the closing brace */
-    ConsumeRCurly ();
-
     /* Emit references to imports/exports */
     EmitExternals ();
 
     /* Leave the lexical level */
     LeaveFunctionLevel ();
 
+    /* Eat the closing brace */
+    ConsumeRCurly ();
+
     /* Switch back to the old segments */
     PopSegments ();