Resolve assertion, when using -fsyntax-only.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 20 Oct 2008 08:35:58 +0000 (08:35 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 20 Oct 2008 08:35:58 +0000 (08:35 +0000)
[r23020]

main.c

diff --git a/main.c b/main.c
index a103a60..52fc6c5 100644 (file)
--- a/main.c
+++ b/main.c
@@ -970,9 +970,8 @@ int main(int argc, char **argv)
                case PrintCaml:
                case LexTest:
                case PreprocessOnly:
-                       outname = "-";
-                       break;
                case ParseOnly:
+                       outname = "-";
                        break;
                case Compile:
                        get_output_name(outnamebuf, sizeof(outnamebuf), filename, ".s");