summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-02-10 20:35:01 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-02-10 20:35:01 +0000
commit1fe49151c9c0871e6b0a753b7624eb7c1612995c (patch)
tree70394dc37308b16225832a65b2cfe1382a0958d7
parent788afe6d3aef53930c73491b277ffb7eb7908dc9 (diff)
downloadbcm5719-llvm-1fe49151c9c0871e6b0a753b7624eb7c1612995c.tar.gz
bcm5719-llvm-1fe49151c9c0871e6b0a753b7624eb7c1612995c.zip
Add braces to quiet a gcc warning.
llvm-svn: 125309
-rw-r--r--clang/lib/Driver/Tools.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 2aa05f29b7b..cff4c60c36f 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -3233,11 +3233,12 @@ void freebsd::Link::ConstructJob(Compilation &C, const JobAction &JA,
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))
OpenPOWER on IntegriCloud