handle empty comments in automatic emitters right
[libfirm] / ir / be / scripts / generate_emitter.pl
index e623456..ebbf7a3 100755 (executable)
@@ -64,6 +64,7 @@ foreach my $op (keys(%nodes)) {
                        my $cnt = 0;
                        my $buf = 'cmd_buf';
 
+                       push(@obst_func, "  cmnt_buf[0] = '\\0';\n");
                        foreach $template (split(/$comment_string_quoted/, $fmt, 2)) {
                                my @params;
                                my $res = "";