[cfe-commits] r125309 - /cfe/trunk/lib/Driver/Tools.cpp

Matt Beaumont-Gay matthewbg at google.com
Thu Feb 10 12:35:02 PST 2011


Author: matthewbg
Date: Thu Feb 10 14:35:01 2011
New Revision: 125309

URL: http://llvm.org/viewvc/llvm-project?rev=125309&view=rev
Log:
Add braces to quiet a gcc warning.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=125309&r1=125308&r2=125309&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Feb 10 14:35:01 2011
@@ -3233,11 +3233,12 @@
       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))





More information about the cfe-commits mailing list