* src/SDCCsymt.h: added IS_AUTO(symbol) test macro
[fw/sdcc] / src / SDCCopt.c
index 4e9c2a7be560647efde1841a42b6a0a9efcf780c..93668913bfebe1ee4448c2ae94ea30d6001c9bb2 100644 (file)
@@ -611,10 +611,7 @@ convertToFcall (eBBlock ** ebbs, int count)
 static int
 isLocalWithoutDef (symbol * sym)
 {
-  if (!sym->level)
-    return 0;
-  
-  if (IS_STATIC (sym->etype))
+  if (!IS_AUTO (sym))
     return 0;
   
   if (IS_VOLATILE (sym->type))