]> granicus.if.org Git - clang/commitdiff
Add braces to quiet a gcc warning.
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 10 Feb 2011 20:35:01 +0000 (20:35 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 10 Feb 2011 20:35:01 +0000 (20:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125309 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 2aa05f29b7ba0e40f36f93ee4107020a8781c95f..cff4c60c36f6505565c016384791944577d5529e 100644 (file)
@@ -3233,11 +3233,12 @@ void freebsd::Link::ConstructJob(Compilation &C, const JobAction &JA,
       CmdArgs.push_back("--no-as-needed");
     }
 
-    if (Args.hasArg(options::OPT_pthread))
+    if (Args.hasArg(options::OPT_pthread)) {
       if (Args.hasArg(options::OPT_pg))
         CmdArgs.push_back("-lpthread_p");
       else
         CmdArgs.push_back("-lpthread");
+    }
 
     if (Args.hasArg(options::OPT_pg)) {
       if (Args.hasArg(options::OPT_shared))