]> granicus.if.org Git - clang/commitdiff
Fix a typo introduced in r205716
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 7 Apr 2014 16:19:27 +0000 (16:19 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 7 Apr 2014 16:19:27 +0000 (16:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205717 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 83e302c9c6c0018dbb839962abc994f1d5fd57ac..e65b6e1782c2d198d6f723e660b6a3e45756b641 100644 (file)
@@ -7534,9 +7534,8 @@ Command *visualstudio::Compile::GetCommand(Compilation &C, const JobAction &JA,
                           : "/Gy-");
   if (Arg *A = Args.getLastArg(options::OPT_fdata_sections,
                                options::OPT_fno_data_sections))
-    CmdArgs.push_back(A->getOption().getID() == options::OPT_ffunction_sections
-                          ? "/Gw"
-                          : "/Gw-");
+    CmdArgs.push_back(
+        A->getOption().getID() == options::OPT_fdata_sections ? "/Gw" : "/Gw-");
   if (Args.hasArg(options::OPT_fsyntax_only))
     CmdArgs.push_back("/Zs");
   if (Args.hasArg(options::OPT_g_Flag, options::OPT_gline_tables_only))