]> granicus.if.org Git - clang/commitdiff
Fix an abiguous-else warning from GCC. I have no idea why Clang doesn't
authorChandler Carruth <chandlerc@gmail.com>
Sat, 17 Dec 2011 22:32:42 +0000 (22:32 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 17 Dec 2011 22:32:42 +0000 (22:32 +0000)
have this warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146839 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 798d787c65e6f8bd6ab72780b12f1c483e51ca43..c8f99c4f91d03ac4d463e423a32bd5d11d86c207 100644 (file)
@@ -4213,11 +4213,12 @@ void openbsd::Link::ConstructJob(Compilation &C, const JobAction &JA,
 
     if (Args.hasArg(options::OPT_pthread))
       CmdArgs.push_back("-lpthread");
-    if (!Args.hasArg(options::OPT_shared))
+    if (!Args.hasArg(options::OPT_shared)) {
       if (Args.hasArg(options::OPT_pg)) 
          CmdArgs.push_back("-lc_p");
       else
          CmdArgs.push_back("-lc");
+    }
     CmdArgs.push_back("-lgcc");
   }