[Driver] Fix accidentally reversed condition in r349752

llvm-svn: 349754
This commit is contained in:
Michal Gorny 2018-12-20 13:27:37 +00:00
parent 8ff7fec28b
commit 920936ce5f
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ void tools::linkSanitizerRuntimeDeps(const ToolChain &TC,
if (TC.getTriple().getOS() != llvm::Triple::RTEMS &&
!TC.getTriple().isAndroid()) {
CmdArgs.push_back("-lpthread");
if (TC.getTriple().isOSOpenBSD())
if (!TC.getTriple().isOSOpenBSD())
CmdArgs.push_back("-lrt");
}
CmdArgs.push_back("-lm");