Fix pmgen "reject" statement
authorClifford Wolf <clifford@clifford.at>
Sun, 13 Jan 2019 16:15:40 +0000 (17:15 +0100)
committerClifford Wolf <clifford@clifford.at>
Tue, 15 Jan 2019 10:23:25 +0000 (11:23 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/pmgen/pmgen.py

index 88d60d29857119d82f4b1df740ad9929bcbab828..6486278d41625c5d2c8e87cc166c4afca18f9e46 100644 (file)
@@ -293,7 +293,7 @@ with open("%s_pm.h" % prefix, "w") as f:
     print("  }", file=f)
     print("", file=f)
 
-    print("#define reject break", file=f)
+    print("#define reject do { check_blacklist(); goto rollback_label; } while(0)", file=f)
     print("#define accept do { on_accept(); check_blacklist(); if (rollback) goto rollback_label; } while(0)", file=f)
     print("", file=f)