summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghc/driver/mangler/ghc-asm.lprl2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/driver/mangler/ghc-asm.lprl b/ghc/driver/mangler/ghc-asm.lprl
index 5d5676cfd8..d704f09db6 100644
--- a/ghc/driver/mangler/ghc-asm.lprl
+++ b/ghc/driver/mangler/ghc-asm.lprl
@@ -1229,7 +1229,7 @@ sub mangle_asm {
push(@o,$l);
next;
}
- next if $l =~ /^\s*\..*$symb.*\n/;
+ next if $l =~ /^\s*\..*$symb.*\n?/;
push(@o,$l);
}
$c = join("\n",@o) . "\n";