From 15d158144628eea0c9efceca3e94043965c27472 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Mon, 7 Apr 2014 16:19:27 +0000 Subject: [PATCH] Fix a typo introduced in r205716 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205717 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 83e302c9c6..e65b6e1782 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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)) -- 2.40.0