[cfe-commits] r146839 - /cfe/trunk/lib/Driver/Tools.cpp
Chandler Carruth
chandlerc at gmail.com
Sat Dec 17 14:32:43 PST 2011
Author: chandlerc
Date: Sat Dec 17 16:32:42 2011
New Revision: 146839
URL: http://llvm.org/viewvc/llvm-project?rev=146839&view=rev
Log:
Fix an abiguous-else warning from GCC. I have no idea why Clang doesn't
have this 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=146839&r1=146838&r2=146839&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Dec 17 16:32:42 2011
@@ -4213,11 +4213,12 @@
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");
}
More information about the cfe-commits
mailing list