From: Chandler Carruth Date: Sat, 17 Dec 2011 22:32:42 +0000 (+0000) Subject: Fix an abiguous-else warning from GCC. I have no idea why Clang doesn't X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=657849c60378b045a9e904f35ece8fd84425a20a;p=clang Fix an abiguous-else warning from GCC. I have no idea why Clang doesn't have this warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146839 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 798d787c65..c8f99c4f91 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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"); }