An sfr/sbit can have an "at #" AND an initializer
[fw/sdcc] / src / SDCCast.c
index a2066a19fdd4a6cc70197b1f7f4cb142e207820a..eda105435db363953242a4018de200a03431387b 100644 (file)
@@ -3540,7 +3540,7 @@ createBlock (symbol * decl, ast * body)
   ast *ex;
 
   /* if the block has nothing */
-  if (!body)
+  if (!body && !decl)
     return NULL;
 
   ex = newNode (BLOCK, NULL, body);