fix perl warning
authorMatthias Braun <matze@braunis.de>
Wed, 19 Oct 2011 19:36:44 +0000 (21:36 +0200)
committerMatthias Braun <matze@braunis.de>
Wed, 19 Oct 2011 19:44:39 +0000 (21:44 +0200)
ir/be/scripts/generate_emitter_new.pl

index d97530e..ed868f0 100755 (executable)
@@ -52,7 +52,7 @@ sub create_emitter {
        our %emit_templates;
        our $arch;
 
-       if ($indent_line_func eq "") {
+       if (!defined($indent_line_func)) {
                $template = "\\t" . $template;
        } else {
                push(@{$result}, "${indent}${indent_line_func};\n");