bug fix for translation of do loops using a goto
This commit is contained in:
parent
868120cec6
commit
4676c4f4d4
|
@ -201,7 +201,7 @@ public interface TranslatorToCAst {
|
|||
breakNode);
|
||||
|
||||
} else {
|
||||
CAstNode header = Ast.makeNode(CAstNode.EMPTY);
|
||||
CAstNode header = Ast.makeNode(CAstNode.LABEL_STMT, Ast.makeConstant("_do_label"), Ast.makeNode(CAstNode.EMPTY));
|
||||
CAstNode loopGoto = Ast.makeNode(CAstNode.IFGOTO, loopTest);
|
||||
|
||||
wc.cfg().map(header, header);
|
||||
|
|
Loading…
Reference in New Issue