]> granicus.if.org Git - clang/commitdiff
Remove unnecessary braces in single-line 'if'.
authorDouglas Katzman <dougk@google.com>
Thu, 15 Oct 2015 04:10:40 +0000 (04:10 +0000)
committerDouglas Katzman <dougk@google.com>
Thu, 15 Oct 2015 04:10:40 +0000 (04:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250363 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 21939e011f8c1c7b14ffefb85f4108d27b663639..56cbb900c29e50ccd65fa211a7e609de01be161e 100644 (file)
@@ -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();