aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-12-17 22:32:42 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-12-17 22:32:42 +0000
commit657849c60378b045a9e904f35ece8fd84425a20a (patch)
tree64aabfa9058de583ed3fc145361356eb8a34958c /lib/Driver/Tools.cpp
parentb05dcdd1f2ba50bba91495fcb0498e93cf7dbeee (diff)
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
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp3
1 files changed, 2 insertions, 1 deletions
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");
}