aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Driver/CC1AsOptions.td2
-rw-r--r--lib/Driver/Tools.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Driver/CC1AsOptions.td b/include/clang/Driver/CC1AsOptions.td
index cc418e7353..b1067b7889 100644
--- a/include/clang/Driver/CC1AsOptions.td
+++ b/include/clang/Driver/CC1AsOptions.td
@@ -78,5 +78,5 @@ def relax_all : Flag<"-relax-all">,
def no_exec_stack : Flag<"--noexecstack">,
HelpText<"Mark the file as not needing an executable stack">;
-def fatal_warnings : Flag<"-fatal-warnings">,
+def fatal_warnings : Flag<"--fatal-warnings">,
HelpText<"Consider warnings as errors">;
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index c575afb95e..9ff8a5ccdc 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -1020,7 +1020,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// Do nothing, this is the default and we don't support anything else.
} else if (Value == "-L") {
CmdArgs.push_back("-msave-temp-labels");
- } else if (Value == "-fatal-warnings") {
+ } else if (Value == "--fatal-warnings") {
CmdArgs.push_back("-mllvm");
CmdArgs.push_back("-fatal-assembler-warnings");
} else {