From: Douglas Katzman Date: Thu, 15 Oct 2015 04:10:40 +0000 (+0000) Subject: Remove unnecessary braces in single-line 'if'. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34847ba18af8a333934625eaf9156c882a58a5e4;p=clang Remove unnecessary braces in single-line 'if'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250363 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 21939e011f..56cbb900c2 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -5643,9 +5643,8 @@ void ClangAs::ConstructJob(Compilation &C, const JobAction &JA, Args.ClaimAllArgs(options::OPT_g_Group); if (Arg *A = Args.getLastArg(options::OPT_g_Group)) { WantDebug = !A->getOption().matches(options::OPT_g0); - if (WantDebug) { + if (WantDebug) DwarfVersion = DwarfVersionNum(A->getSpelling()); - } } if (DwarfVersion == 0) DwarfVersion = getToolChain().GetDefaultDwarfVersion();