diff python/ppci/c3/visitor.py @ 362:c05ab629976a

Added CPUID for arm
author Windel Bouwman
date Sat, 15 Mar 2014 10:56:34 +0100
parents 5477e499b039
children 6ae782a085e0
line wrap: on
line diff
--- a/python/ppci/c3/visitor.py	Fri Mar 14 16:18:54 2014 +0100
+++ b/python/ppci/c3/visitor.py	Sat Mar 15 10:56:34 2014 +0100
@@ -24,7 +24,8 @@
             for s in node.declarations:
                 self.do(s)
             self.do(node.typ)
-            self.do(node.body)
+            if node.body:
+                self.do(node.body)
         elif type(node) is Compound:
             for s in node.statements:
                 self.do(s)